Compare commits
11 Commits
73a4a53b53
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1b482976c0 | |||
| 67aede7d9b | |||
| b26efcc89f | |||
| f1b00c0000 | |||
| e6c5cff3a9 | |||
| 61ea6ec5ac | |||
| aa65516e0f | |||
|
|
1f3aace239 | ||
|
|
9b368cbf4b | ||
|
|
1aac62cfc8 | ||
|
|
6089120483 |
30
.github/workflows/docker-build-and-push.yaml
vendored
30
.github/workflows/docker-build-and-push.yaml
vendored
@@ -20,30 +20,22 @@ jobs:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: docker.io
|
REGISTRY: docker.io
|
||||||
IMAGE_NAME: niccolon/raptor-deps:mlir0c2701f
|
IMAGE_NAME: niccolon/raptor-deps-mlir0c2701f
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
github-server-url: https://chef.heaplab.deib.polimi.it/git
|
|
||||||
repository: nnicolosi/Raptor-Containers
|
|
||||||
|
|
||||||
- name: Build Docker image
|
|
||||||
run: |
|
run: |
|
||||||
cd ${GITHUB_WORKSPACE}/mlir0c2701f
|
git clone --depth 1 --branch ${GITHUB_REF_NAME} \
|
||||||
docker build -t ${REGISTRY}/${IMAGE_NAME} -f Dockerfile .
|
https://chef.heaplab.deib.polimi.it/git/${GITHUB_REPOSITORY}.git \
|
||||||
|
${GITHUB_WORKSPACE}
|
||||||
|
|
||||||
- name: Log in to the Container registry
|
- name: Build and Push with Kaniko
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
uses: aevea/action-kaniko@master
|
||||||
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
image: niccolon/raptor-deps-mlir0c2701f
|
||||||
|
path: ./mlir0c2701f
|
||||||
|
build_file: Dockerfile
|
||||||
username: niccolon
|
username: niccolon
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
# Extra args to handle the specific environment
|
||||||
- name: Push Docker image
|
extra_args: "--snapshot-mode=redo --use-new-run"
|
||||||
if: ${{ github.ref == 'refs/heads/main' }}
|
|
||||||
id: push
|
|
||||||
run: |
|
|
||||||
docker push ${REGISTRY}/${IMAGE_NAME}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user