Skip to content

Commit

Permalink
Trigger build on push or pull request events
Browse files Browse the repository at this point in the history
  • Loading branch information
lens0021 committed Apr 17, 2021
1 parent c034514 commit 5ce8638
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
on: [push, pull_request]

env:
IMAGE_NAME: backupbot
Expand Down Expand Up @@ -35,7 +32,7 @@ jobs:
with:
cache-from: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
platforms: linux/amd64,linux/arm64
push: ${{ github.repository_owner == 'femiwiki' }}
push: ${{ github.repository_owner == 'femiwiki' && github.ref == 'refs/heads/main' }}
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit 5ce8638

Please sign in to comment.