Skip to content

v0.1.2.alpha

v0.1.2.alpha #5

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types:
- created
jobs:
build-and-push:
runs-on: ubuntu
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: "arm64,arm"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: docker/Dockerfile
tags: >
ghcr.io/${{ github.repository }}:latest,
ghcr.io/${{github.repository }}:${{ github.event.release.tag_name }}