Publish on Docker Hub #11
Workflow file for this run
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 on Docker Hub | |
on: | |
workflow_dispatch: | |
inputs: | |
latest: | |
type: boolean | |
default: false | |
description: "Add latest tag" | |
jobs: | |
build_and_pub_docker: | |
runs-on: [ ubuntu-latest ] | |
steps: | |
- name: Login to docker.io | |
run: echo ${{ secrets.DOCKER_PWD }} | docker login -u ${{ secrets.DOCKER_LOGIN }} --password-stdin | |
- uses: actions/checkout@master | |
- name: setup builder | |
run: docker buildx create --name mybuilder --bootstrap --use | |
- name: Build and release latest image | |
if: ${{ inputs.latest }} | |
run: cd docker && make release | |
- name: Build and push image | |
if: ${{ ! inputs.latest }} | |
run: cd docker && make buildx |