Skip to content

Commit

Permalink
set up docker buildx to enable image caching
Browse files Browse the repository at this point in the history
  • Loading branch information
toniGrabulosa committed Mar 7, 2024
1 parent b1b615e commit dc69345
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy_new_image_version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,21 @@ jobs:
echo "IMAGE_REPOSITORY_LOWERCASE=$(printf ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Build&Push App container image
uses: docker/build-push-action@v4
with:
file: Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: |
ghcr.io/${{ env.IMAGE_REPOSITORY_LOWERCASE }}:${{ env.TAG }}
Expand Down

0 comments on commit dc69345

Please sign in to comment.