-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (35 loc) · 1.02 KB
/
release.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
name: Release workflow
on:
release:
types:
- published
jobs:
docker-image:
name: "Build docker image"
runs-on: ubuntu-latest
environment:
name: "release"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up qemu
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Login to docker registry
run: |
docker login --username ${{ secrets.DOCKER_USERNAME }} --password ${{ secrets.DOCKER_TOKEN }}
- name: Run buildx
run: |
docker buildx build \
--tag faucet/python3:${{ github.event.release.tag_name }} \
--tag faucet/python3:latest \
--platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x \
--output "type=registry" \
--file Dockerfile \
.