Publish image #150
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish image | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Chopsuey Version | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 # may be actions/checkout@v2 now | |
- name: Login to DockerHub Registry | |
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin | |
- name: Build the tagged Docker image | |
run: docker build . --file Dockerfile --tag gleis21/chopsuey:${{github.event.inputs.version}} | |
- name: Push the tagged Docker image | |
run: docker push gleis21/chopsuey:${{github.event.inputs.version}} | |
- name: Build the latest Docker image | |
run: docker build . --file Dockerfile --tag gleis21/chopsuey:latest | |
- name: Push the latest Docker image | |
run: docker push gleis21/chopsuey:latest |