Skip to content

Commit

Permalink
feat(action): autobuild when push to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
JinnLynn committed Jun 21, 2024
1 parent 7cbc300 commit d40dc4b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- master
default: "dev"
required: true
push:
branches:
- dev
env:
platform: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
defaults:
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:
-t ${{ secrets.DOCKER_USER }}/genpac \
-t ${{ secrets.DOCKER_USER }}/genpac:${{steps.get_version.outputs.result}} \
.
- if: ${{ inputs.branch == 'dev' }}
- if: ${{ inputs.branch == 'dev' || github.ref_name == 'dev' }}
name: Build Docker From dev
run: |
docker buildx build --push --platform "${{ env.platform }}" \
Expand Down

0 comments on commit d40dc4b

Please sign in to comment.