Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release workflow continuation #728

Merged
merged 8 commits into from
Aug 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@ name: 'Release Docker images'

on:
workflow_dispatch:
input:
inputs:
commit:
type: string
required: true
docker_tag:
version:
type: string
required: true
latest:
type: boolean

jobs:
docker-release:
Expand All @@ -18,17 +20,24 @@ jobs:
- name: Debug
run: |
echo "commit: ${{ github.event.inputs.commit }}"
echo "docker tag: ${{ github.event.inputs.docker_tag }}"
echo "prerelease: ${{ github.event.release.prerelease }}"
echo "docker tag: ${{ github.event.inputs.version }}"
echo "latest: ${{ toJSON(github.event.release.latest) }}"

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish release tag
- name: Publish version tag
uses: akhilerm/[email protected]
with:
src: docker.io/muicom/toolpad:${{ github.event.inputs.commit }}
dst: docker.io/muicom/toolpad:${{ github.event.inputs.docker_tag }}
dst: docker.io/muicom/toolpad:${{ github.event.inputs.version }}

- name: Publish latest tag
uses: akhilerm/[email protected]
if: ${{ github.event.inputs.latest == 'true' }}
with:
src: docker.io/muicom/toolpad:${{ github.event.inputs.commit }}
dst: docker.io/muicom/toolpad:latest