|
@@ -1,5 +1,4 @@
|
|
|
-# sync with https://github.com/fphammerle/docker-onion-service/blob/master/.github/workflows/container-image.yml
|
|
|
-
|
|
|
+---
|
|
|
name: container image
|
|
|
|
|
|
on:
|
|
@@ -10,9 +9,15 @@ on:
|
|
|
|
|
|
jobs:
|
|
|
docker-build:
|
|
|
- runs-on: ubuntu-20.04
|
|
|
+ runs-on: ubuntu-22.04
|
|
|
+ permissions: {packages: write}
|
|
|
steps:
|
|
|
- uses: docker/setup-qemu-action@v3.2.0
|
|
|
+ - uses: docker/login-action@v3
|
|
|
+ with:
|
|
|
+ registry: ghcr.io
|
|
|
+ username: ${{ github.actor }}
|
|
|
+ password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- uses: docker/setup-buildx-action@v3.8.0
|
|
|
# > By default, this action uses the Git context so you don't need to use
|
|
|
# > the actions/checkout action to checkout the repository because this
|
|
@@ -28,4 +33,9 @@ jobs:
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION=0
|
|
|
platforms: |
|
|
|
linux/amd64
|
|
|
+ linux/arm/v6
|
|
|
linux/arm/v7
|
|
|
+ linux/arm64
|
|
|
+ push: true
|
|
|
+ tags: |
|
|
|
+ ghcr.io/${{ github.actor }}/systemctl-mqtt:${{ github.sha }}-attempt${{ github.run_attempt }}
|