Skip to content

Commit

Permalink
chore(ci/cd): Release tagged images on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszdurka committed May 15, 2024
1 parent 4e4d62a commit c00c8f6
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ on:
- '*'

jobs:
date_sha_tag:
release_version:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.image_tag.outputs.tag }}
version: ${{ steps.version.outputs.version }}
steps:
- id: image_tag
run: echo "::set-output name=tag::$(date +%s)-${{ github.sha }}"
- id: version
run: echo "::set-output name=version::${GITHUB_REF#refs/*/}"

publish_production_docker:
needs: date_sha_tag
uses: ./.github/workflows/on-demand-publish-docker-image.yml
with:
tags: |
ghcr.io/wepublish/hauptstadt:production-${{ needs.date_sha_tag.outputs.tag }}
ghcr.io/wepublish/hauptstadt:production
ghcr.io/wepublish/hauptstadt:${{ needs.release_version.outputs.version }}
ghcr.io/wepublish/hauptstadt:latest
secrets: inherit

0 comments on commit c00c8f6

Please sign in to comment.