Skip to content

Commit

Permalink
tag docker images with release tag version
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzhan-yilmaz committed Oct 15, 2024
1 parent 37385ea commit b577dd3
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Build and publish a steampipe and powerpipe images to ghcr.io
on:
# publish on releases, e.g. v2.1.13 (image tagged as "2.1.13" - "v" prefix is removed)
# release:
# types: [ published ]
release:
types: [ published ]

push:
branches:
- 'main'
paths:
- 'steampipe/**'
- 'powerpipe/**'
- '.github/workflows/docker-publish.yaml'
# push:
# branches:
# - 'main'
# paths:
# - 'steampipe/**'
# - 'powerpipe/**'
# - '.github/workflows/docker-publish.yaml'

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -40,6 +40,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.STEAMPIPE_IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
- name: Build and push Docker image -- steampipe
uses: docker/build-push-action@v4
Expand All @@ -56,6 +58,8 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.POWERPIPE_IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
- name: Build and push Docker image -- powerpipe
uses: docker/build-push-action@v4
Expand Down

0 comments on commit b577dd3

Please sign in to comment.