Skip to content

Publish to Docker Hub #22

Publish to Docker Hub

Publish to Docker Hub #22

Workflow file for this run

name: Publish to Docker Hub
on:
release:
types: [published]
jobs:
update:
runs-on: ubuntu-latest
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
steps:
- uses: actions/checkout@v2
- name: Get release version
id: get_version
run: echo ::set-env name=RELEASE_VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: jacobtomlinson/gha-find-replace
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
tags: "latest,${{ env.RELEASE_VERSION }}"
platforms: linux/amd64,linux/arm64