Преглед изворни кода

pipeline: build container image for armv6 & arm64 (in addition to amd64 & armv7) & push to ghcr.io

https://github.com/fphammerle/matrix-commander-container-image/commit/1e04683de34b059a3496c9ee76c42a4fc3acb017
Fabian Peter Hammerle пре 3 месеци
родитељ
комит
53f0033606
2 измењених фајлова са 17 додато и 3 уклоњено
  1. 13 3
      .github/workflows/container-image.yml
  2. 4 0
      CHANGELOG.md

+ 13 - 3
.github/workflows/container-image.yml

@@ -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 }}

+ 4 - 0
CHANGELOG.md

@@ -63,6 +63,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Removed
 - compatibility with `python3.5`, `python3.6`, `python3.7` & `python3.8`
 
+### Internal
+- pipeline: build container image for armv6 & arm64 (in addition to amd64 & armv7)
+- pipeline: push container images to ghcr.io
+
 ## [0.5.0] - 2020-11-06
 ### Added
 - MQTT message on topic `systemctl/hostname/lock-all-sessions`