Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Enraged-Dun-Cookie-Development-Te…
Browse files Browse the repository at this point in the history
…am/Ceobe-bot
  • Loading branch information
phidiaLam committed May 20, 2024
2 parents 9b65478 + 2c18bfc commit 0eb0d8c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-docker-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,39 @@ jobs:
echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
-
name: Build and push release
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: startsWith(github.ref, 'refs/tags/v')
with:
context: .
push: true
tags: ceobecanteen/ceobe-canteen-bot:${{ env.TAG_NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
sbom: false

-
name: Build and push latest
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: "!startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push'"
with:
context: .
push: true
tags: ceobecanteen/ceobe-canteen-bot
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
sbom: false
-
name: Build and push debug
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
if: "github.event_name == 'pull_request'"
with:
context: .
push: true
tags: ceobecanteen/ceobe-canteen-bot:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
provenance: false
sbom: false

0 comments on commit 0eb0d8c

Please sign in to comment.