v12.0.1 #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ | |
. |