Skip to content

Commit

Permalink
update docker actions and cache with repo
Browse files Browse the repository at this point in the history
  • Loading branch information
austinorr committed Feb 1, 2024
1 parent 23f9485 commit ca69254
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Inspect builder
run: |
Expand All @@ -53,24 +53,24 @@ jobs:
- name: Login to Azure
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ${{ secrets.ACR_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./nereid
file: ./nereid/Dockerfile.multi
target: ${{ matrix.image }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-from: type=registry,ref=${{ secrets.ACR_SERVER }}/nereid/${{ matrix.image }}:buildcache
cache-to: type=registry,ref=${{ secrets.ACR_SERVER }}/nereid/${{ matrix.image }}:buildcache,mode=max

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit ca69254

Please sign in to comment.