diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5db1ffa..8061d71 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,9 +2,9 @@ name: BUILD on: push: - branches: [ "main", "dev" ] + branches: [ "**" ] pull_request: - branches: [ "main", "dev" ] + branches: [ "**" ] jobs: build: @@ -22,11 +22,13 @@ jobs: uses: docker/metadata-action@v5 with: images: niklasstoffers/gitlab-auto-approve + tags: | + type=sha - name: Build and push uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile - push: true - tags: ${{ github.sha }} + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file