Skip to content

Commit

Permalink
Add docker tag github action (mui#726)
Browse files Browse the repository at this point in the history
action
  • Loading branch information
Janpot authored Aug 3, 2022
1 parent 0028ccc commit 15bbc0b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Release Docker images'

on:
workflow_dispatch:
input:
commit:
type: string
required: true
docker_tag:
type: string
required: true

jobs:
docker-release:
name: 'retag and push'
steps:
- name: Debug
run: |
echo "commit: ${{github.event.inputs.commit}}"
echo "docker tag: ${{github.event.inputs.docker_tag}}"
echo "prerelease: ${{ github.event.release.prerelease }}"
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Publish prerelease 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}}

0 comments on commit 15bbc0b

Please sign in to comment.