mirror of
https://github.com/esauflores/toolbox.git
synced 2026-03-09 21:03:59 +00:00
fix: restrict tag pattern to versioned tags for Docker image builds
This commit is contained in:
3
.github/workflows/build-and-push.yml
vendored
3
.github/workflows/build-and-push.yml
vendored
@@ -3,7 +3,7 @@ name: Build and Push to Personal Registry
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "*"
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
@@ -29,7 +29,6 @@ jobs:
|
||||
run: docker push $IMAGE:${{ github.ref_name }}
|
||||
|
||||
- name: Tag & push latest for release tags
|
||||
if: startsWith(github.ref_name, 'v')
|
||||
run: |
|
||||
docker tag $IMAGE:${{ github.ref_name }} $IMAGE:latest
|
||||
docker push $IMAGE:latest
|
||||
|
||||
Reference in New Issue
Block a user