Phoenix Framework 1.7.8 #24
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: Build nicbet/phoenix | |
on: | |
push: | |
branches: | |
- "!*" | |
tags: | |
- "[0-9].[0-9].[0-9]" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: checkout code | |
uses: actions/checkout@v2 | |
- | |
name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v1 | |
- | |
name: setup Docker buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
install: true | |
config-inline: | | |
[registry."docker.io"] | |
mirrors = ["ghcr.io"] | |
- | |
name: login to docker hub | |
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
- | |
name: build multiarch image | |
run: | | |
docker build \ | |
--tag nicbet/phoenix:${{ github.ref_name }} \ | |
--tag nicbet/phoenix:latest \ | |
--platform linux/amd64 --push . |