Skip to content

Commit

Permalink
Merge pull request #4 from niklasstoffers/build-action
Browse files Browse the repository at this point in the history
Use commit SHA for image tag
  • Loading branch information
mergify[bot] authored Dec 12, 2023
2 parents ad85e12 + 7c6736c commit f165222
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,10 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: niklasstoffers/gitlab-auto-approve
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ github.sha }}

0 comments on commit f165222

Please sign in to comment.