Skip to content

Publish

Publish #17

Workflow file for this run

name: Publish
on:
create:
tags:
- v*
jobs:
publish:
name: "Publish to DockerHub"
runs-on: ubuntu-latest
steps:
- name: "Check out code"
uses: actions/checkout@v3
- name: "Set up QEMU"
uses: docker/[email protected]
- name: "Set up Docker Buildx"
uses: docker/[email protected]
- name: "Login to DockerHub"
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: "Build and push"
id: docker_build
uses: docker/[email protected]
with:
push: true
build-args: "VERSION=${{ github.ref_name }}"
tags: "${{ github.repository }}:latest,${{ github.repository }}:${{ github.ref_name }}"
- name: "Image digest"
run: echo ${{ steps.docker_build.outputs.digest }}