Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: update docker platforms

Steven7475a30fe9fd
diff --git a/.github/workflows/build-and-push-canary-image.yml b/.github/workflows/build-and-push-canary-image.yml
index 2ecec816d..1070f8501 100644
--- a/.github/workflows/build-and-push-canary-image.yml
+++ b/.github/workflows/build-and-push-canary-image.yml
@@ -4,6 +4,12 @@ on:
push:
branches: [main]
+env:
+ DOCKER_PLATFORMS: |
+ linux/amd64
+ linux/arm/v7
+ linux/arm64
+
jobs:
build-and-push-canary-image:
runs-on: ubuntu-latest
@@ -15,26 +21,16 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
- - name: Login to Docker Hub
- uses: docker/login-action@v3
with:
- username: ${{ secrets.DOCKER_HUB_USERNAME }}
- password: ${{ secrets.DOCKER_HUB_TOKEN }}
-
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ github.token }}
+ platforms: ${{ env.DOCKER_PLATFORMS }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
+ version: latest
install: true
- version: v0.9.1
+ platforms: ${{ env.DOCKER_PLATFORMS }}
- name: Docker meta
id: meta
@@ -48,13 +44,26 @@ jobs:
tags: |
type=raw,value=canary
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKER_HUB_USERNAME }}
+ password: ${{ secrets.DOCKER_HUB_TOKEN }}
+
+ - name: Login to GitHub Container Registry
+ uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ github.token }}
+
- name: Build and Push
id: docker_build
uses: docker/build-push-action@v6
with:
context: .
file: ./scripts/Dockerfile
- platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
+ platforms: ${{ env.DOCKER_PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}