forked from bossoq/Twitch-Channel-Points-Miner-v2
-
Notifications
You must be signed in to change notification settings - Fork 365
61 lines (52 loc) · 1.75 KB
/
deploy-docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 }}