Skip to content

check write permissions #314

check write permissions

check write permissions #314

name: Docker Publish
on:
push:
branches:
- 's6v2'
env:
tag: s6v2
project: sma-mod
jobs:
docker:
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 DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ github.token }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64,linux/armhf
push: true
provenance: false
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ env.project }}:${{ env.tag }}
ghcr.io/${{ github.repository_owner }}/${{ env.project }}:${{ env.tag }}