Skip to content

Commit

Permalink
ci: update build-images event hook, add prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseylin committed Jul 24, 2023
1 parent 7cef32a commit 99b11be
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
name: build-images

on:
workflow_dispatch
# push:
# branches:
# - "master"
# tags:
# - "v*"
# pull_request:
# branches:
# - "master"
workflow_dispatch:
push:
branches:
- "dev"
- "prod"
tags:
- "v*"
pull_request:
branches:
- "dev"

jobs:
docker:
Expand Down Expand Up @@ -47,6 +48,7 @@ jobs:
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
prefix=${{ github.head_ref || github.ref_name }}
- name: Login to Gitlab registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
Expand Down

0 comments on commit 99b11be

Please sign in to comment.