Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 4faa180

Browse files
authored
Update docker-tag.yml
1 parent c42d14e commit 4faa180

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

.github/workflows/docker-tag.yml

+22-9
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,34 @@ on:
55
tags:
66
- "[0-9]+.[0-9]+.[0-9]+"
77
- "[0-9]+.[0-9]+.[0-9]+.[0-9]+"
8-
8+
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v2
16-
- name: install buildx
13+
- name: checkout code
14+
uses: actions/checkout@v2
15+
- name: Login to DockerHub
16+
uses: docker/login-action@v1
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
-
21+
name: Set up QEMU
22+
uses: docker/setup-qemu-action@v1
23+
with:
24+
platforms: all
25+
- name: Set up Docker Buildx
1726
id: buildx
18-
uses: crazy-max/ghaction-docker-buildx@v1
27+
uses: docker/setup-buildx-action@v1
1928
with:
2029
version: latest
30+
-
31+
name: Available platforms
32+
run: echo ${{ steps.buildx.outputs.platforms }}
2133
- name: build the image
22-
run: |
23-
docker buildx build \
34+
run: |
35+
docker buildx build \
2436
--tag freetakteam/freetakserver:${{ github.sha }} \
25-
--platform linux/amd64,linux/arm/v7,linux/arm64 .
37+
--platform linux/amd64,linux/arm/v7,linux/arm64 . --push
38+

0 commit comments

Comments
 (0)