Skip to content

Commit

Permalink
Added build-args
Browse files Browse the repository at this point in the history
  • Loading branch information
text-adi committed Apr 4, 2024
1 parent dd0c381 commit 5b80929
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
- name: Get version
id: _tmp_last_tag
env:
DOCKERHUB_REPO: ...
DOCKERHUB_IMAGE: ...
DOCKERHUB_REPO: ${{ secrets.DOCKER_USERNAME }}
DOCKERHUB_IMAGE: ${{ vars.APP_NAME }}
run: |
version=$(curl -L --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=1000" | \
jq '.results | .[] | .name' -r | \
Expand Down Expand Up @@ -86,6 +86,8 @@ jobs:
push: true
provenance: false
target: local
build-args: |
BASE_IMAGE=${{ vars.BASE_IMAGE }}
tags: |
${{ steps.image_tag.outputs.value }}
cache-from: type=gha
Expand Down

0 comments on commit 5b80929

Please sign in to comment.