Skip to content

Commit c72f180

Browse files
Create docker-image.yml
1 parent a764d6e commit c72f180

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: "0 23 1 * *"
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up QEMU
16+
uses: docker/setup-qemu-action@master
17+
with:
18+
platforms: all
19+
- name: Set up Docker Buildx
20+
id: buildx
21+
uses: docker/setup-buildx-action@master
22+
-
23+
name: Login to DockerHub
24+
uses: docker/login-action@v1
25+
with:
26+
username: ${{ secrets.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
-
29+
name: Build and push
30+
uses: docker/build-push-action@v2
31+
with:
32+
builder: ${{ steps.buildx.outputs.name }}
33+
context: .
34+
file: ./Dockerfile
35+
platforms: linux/amd64,linux/arm/v7,linux/arm64
36+
push: true
37+
tags: andrewmhub/transmission-tracker-add:latest

0 commit comments

Comments
 (0)