-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 986 Bytes
/
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 repo
uses: actions/checkout@v3
- name: Set up qemu
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Set up docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
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/test-host:${{ github.event.release.tag_name }} \
--tag faucet/test-host:latest \
--platform linux/386,linux/amd64 \
--output "type=registry" \
--file Dockerfile \
.