use alpine-toolbox as base image #59
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
--- | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
multi-arch-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Log in to GitHub Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Prepare release tag | |
id: tag | |
run: echo ::set-output name=version::${GITHUB_REF#refs/tags/v} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./Dockerfile | |
platforms: linux/amd64 | |
push: true | |
labels: | | |
org.opencontainers.image.title=mirrIO | |
org.opencontainers.image.description=mirrIO | |
org.opencontainers.image.url=https://github.com/containeroo/mirrio | |
org.opencontainers.image.source=https://github.com/containeroo/mirrio | |
org.opencontainers.image.version=${{ steps.tag.outputs.version }} | |
tags: | | |
containeroo/mirrio:latest | |
containeroo/mirrio:${{ steps.tag.outputs.version }} | |
ghcr.io/containeroo/mirrio:latest | |
ghcr.io/containeroo/mirrio:${{ steps.tag.outputs.version }} |