Skip to content

Build Cross-Platform Docker Container on Release #5

Build Cross-Platform Docker Container on Release

Build Cross-Platform Docker Container on Release #5

Workflow file for this run

name: Build and Push Docker Image
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/subatic-transcoding:latest
ghcr.io/${{ github.repository_owner }}/subatic-transcoding:${{ github.event.release.tag_name }}
- name: Logout from GitHub Container Registry
run: docker logout ghcr.io