Skip to content

Commit

Permalink
Merge pull request #380 from doitintl/ci-fix-git-docker
Browse files Browse the repository at this point in the history
ci: Fix missing build info in docker images
  • Loading branch information
stepanstipl authored Oct 4, 2022
2 parents 37e87fd + 9828bc6 commit abba03b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
uses: docker/setup-buildx-action@v2
- name: build docker image
run: |
docker buildx build .
docker buildx build --build-arg GITHUB_REF --build-arg GITHUB_SHA .
integration-test:
name: integration test
needs:
Expand Down Expand Up @@ -170,6 +170,9 @@ jobs:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ needs.create-release.outputs.tag_name }}
build-args: |
GITHUB_REF
GITHUB_SHA
- name: Push latest
uses: docker/build-push-action@v3
if: ${{ !contains(github.ref, 'nightly') }}
Expand Down

0 comments on commit abba03b

Please sign in to comment.