Skip to content

Commit

Permalink
ci: fix image build event on semver and pr
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseylin committed Jul 24, 2023
1 parent 99b11be commit b2ac0e1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: build-images
on:
workflow_dispatch:
push:
branches:
- "dev"
- "prod"
tags:
- "v*"
pull_request:
Expand Down Expand Up @@ -45,10 +42,8 @@ jobs:
images: |
registry.gitlab.inria.fr/cromac/automateddiscoverytool/${{ matrix.image }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
prefix=${{ github.head_ref || github.ref_name }}
type=semver,event=tag,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 b2ac0e1

Please sign in to comment.