Skip to content

Build and Publish (Docker) #1

Build and Publish (Docker)

Build and Publish (Docker) #1

Workflow file for this run

---
name: Build and Publish
on:
release:
types:
- published
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@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 Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ github.repository }}:${{ github.event.release.tag_name }},${{ github.repository }}:latest