1.9.3 #110
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: deploy-docker | |
on: | |
push: | |
# branches: [master] | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
deploy-docker: | |
name: Deploy Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- 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: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: rdavidoff/twitch-channel-points-miner-v2 | |
tags: | | |
type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags') }} | |
type=raw,value=latest | |
- name: Build and push AMD64, ARM64, ARMv7 | |
id: docker_build | |
uses: docker/[email protected] | |
with: | |
context: . | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
platforms: linux/amd64,linux/arm64,linux/arm/v7 | |
build-args: BUILDX_QEMU_ENV=true | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
# File size exceeds the maximum allowed 25000 bytes | |
# - name: Docker Hub Description | |
# uses: peter-evans/dockerhub-description@v2 | |
# with: | |
# username: ${{ secrets.DOCKER_USERNAME }} | |
# password: ${{ secrets.DOCKER_TOKEN }} | |
# repository: rdavidoff/twitch-channel-points-miner-v2 | |
- name: Image digest AMD64, ARM64, ARMv7 | |
run: echo ${{ steps.docker_build.outputs.digest }} |