chore(ci): update to GHCR to store mlir image

This commit is contained in:
youben11
2021-08-03 13:44:48 +01:00
committed by Ayoub Benaissa
parent 33f5911ac2
commit 89d16bbea7
2 changed files with 7 additions and 6 deletions

View File

@@ -24,6 +24,9 @@ jobs:
- name: Build and test compiler
uses: addnab/docker-run-action@v3
with:
image: qbozama/mlir:69c6ea9038e5f3ef91a3c5ab59fae3276f95628b
registry: ghcr.io
image: ghcr.io/zama-ai/mlir@sha256:5b7adfbf4e28c5a7517ed0b2bb0347455dea86f495b3ba060f6bea70c9dc10d3
username: ${{ secrets.GHCR_LOGIN }}
password: ${{ secrets.GHCR_PASSWORD }}
options: -v ${{ github.workspace }}:/workspace
run: cd /workspace/compiler && mkdir build && cmake -B build . -DLLVM_DIR=$LLVM_PROJECT/build/lib/cmake/llvm -DMLIR_DIR=$LLVM_PROJECT/build/lib/cmake/mlir && make -C build/ zamacompiler && make test

View File

@@ -1,4 +1,4 @@
name: Docker image
name: Docker image (MLIR)
on:
push:
@@ -13,7 +13,7 @@ jobs:
name: Build & Publish the Docker image
runs-on: ubuntu-latest
env:
IMAGE: qbozama/mlir
IMAGE: ghcr.io/zama-ai/mlir
steps:
- uses: actions/checkout@v2
@@ -22,10 +22,8 @@ jobs:
run: docker build -t $IMAGE -f builders/Dockerfile.mlir-env .
- name: login
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_LOGIN }} --password-stdin
run: echo "${{ secrets.GHCR_PASSWORD }}" | docker login -u ${{ secrets.GHCR_LOGIN }} --password-stdin
- name: tag and publish
run: |
docker tag $IMAGE $IMAGE:${{ github.sha }}
docker push $IMAGE:latest
docker push $IMAGE:${{ github.sha }}