Skip to content
name: publish_jumpseat_on_release
on:
release:
types: [published]
jobs:
publish_to_dockerhub:
name: publish_jumpseat_on_release_publish_to_dockerhub
runs-on: ubuntu-latest
steps:
- name: publish_jumpseat_on_release_publish_to_dockerhub_checkout
uses: actions/checkout@v4
- name: publish_jumpseat_on_release_publish_to_dockerhub_login
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: publish_jumpseat_on_release_publish_to_dockerhub_setenv
run: echo "FLATTENED_TAG=${{ vars.DOCKER_REPO_JUMPSEAT }}:release-$(git log -1 --format=%cd --date=format:%Y%m%dh%H%M%S)" >> $GITHUB_ENV
- name: publish_jumpseat_on_release_publish_to_dockerhub_buildandpublish
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.FLATTENED_TAG }}