Skip to content

Publish production docker image #8

Publish production docker image

Publish production docker image #8

name: Publish production docker image
on:
create:
tags:
- '*'
jobs:
date_sha_tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.image_tag.outputs.tag }}
steps:
- id: image_tag
run: echo "::set-output name=tag::$(date +%s)-${{ github.sha }}"
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
secrets: inherit