Skip to content

Publish image

Publish image #150

Workflow file for this run

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