feat: tag separatly platforms for Docker tags
pytest / acls (push) Failing after 25s
Build Docker images / worker-amd64 (push) Successful in 46s
Worker Clippy check / clippy_check (push) Successful in 46s
Build Docker images / static-arm64 (push) Successful in 47s
Build Docker images / static-amd64 (push) Successful in 59s
Build Docker images / django-amd64 (push) Successful in 2m12s
Build Docker images / worker-arm64 (push) Successful in 2m25s
Build Docker images / django-arm64 (push) Successful in 5m7s
pytest / acls (push) Failing after 25s
Build Docker images / worker-amd64 (push) Successful in 46s
Worker Clippy check / clippy_check (push) Successful in 46s
Build Docker images / static-arm64 (push) Successful in 47s
Build Docker images / static-amd64 (push) Successful in 59s
Build Docker images / django-amd64 (push) Successful in 2m12s
Build Docker images / worker-arm64 (push) Successful in 2m25s
Build Docker images / django-arm64 (push) Successful in 5m7s
Signed-off-by: prettysunflower <me@prettysunflower.moe>
This commit is contained in:
@@ -20,6 +20,10 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
flavor: |
|
||||
latest=auto
|
||||
prefix=
|
||||
suffix=-amd64
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori
|
||||
ghcr.io/prettysunflower/kakigoori
|
||||
@@ -71,6 +75,10 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
prefix=
|
||||
suffix=-arm64,onlatest=true
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori
|
||||
ghcr.io/prettysunflower/kakigoori
|
||||
@@ -105,7 +113,7 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}-arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/arm64
|
||||
|
||||
@@ -129,6 +137,60 @@ jobs:
|
||||
username: ${{ vars.HUB_USERNAME }}
|
||||
password: ${{ secrets.HUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
prefix=
|
||||
suffix=-amd64
|
||||
registry: ghcr.io
|
||||
username: ${{ vars.GHCR_USERNAME }}
|
||||
password: ${{ secrets.GHCR_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: "{{defaultContext}}:static"
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64
|
||||
|
||||
static-arm64:
|
||||
runs-on: ubuntu-latest-arm
|
||||
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
prefix=
|
||||
suffix=-arm64,onlatest=true
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori-static
|
||||
ghcr.io/prettysunflower/kakigoori-static
|
||||
docker.io/prettysunflower/kakigoori-static
|
||||
|
||||
- name: Login to Gitea Container Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.prettysunflower.moe
|
||||
username: ${{ vars.HUB_USERNAME }}
|
||||
password: ${{ secrets.HUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
@@ -153,52 +215,6 @@ jobs:
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/amd64
|
||||
|
||||
static-arm64:
|
||||
runs-on: ubuntu-latest-arm
|
||||
|
||||
steps:
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori-static
|
||||
ghcr.io/prettysunflower/kakigoori-static
|
||||
docker.io/prettysunflower/kakigoori-static
|
||||
|
||||
- name: Login to Gitea Container Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: git.prettysunflower.moe
|
||||
username: ${{ vars.HUB_USERNAME }}
|
||||
password: ${{ secrets.HUB_TOKEN }}
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ vars.GHCR_USERNAME }}
|
||||
password: ${{ secrets.GHCR_TOKEN }}
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: "{{defaultContext}}:static"
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}-arm64
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/arm64
|
||||
|
||||
|
||||
@@ -210,6 +226,10 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
prefix=
|
||||
suffix=-amd64
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori-worker
|
||||
ghcr.io/prettysunflower/kakigoori-worker
|
||||
@@ -253,6 +273,10 @@ jobs:
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
flavor: |
|
||||
latest=true
|
||||
prefix=
|
||||
suffix=-arm64,onlatest=true
|
||||
images: |
|
||||
git.prettysunflower.moe/prettysunflower/kakigoori-worker
|
||||
ghcr.io/prettysunflower/kakigoori-worker
|
||||
@@ -287,6 +311,6 @@ jobs:
|
||||
with:
|
||||
context: "{{defaultContext}}:worker"
|
||||
push: ${{ gitea.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.meta.outputs.tags }}-arm64
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
platforms: linux/arm64
|
||||
|
||||
+13
-2
@@ -7,11 +7,22 @@ WORKDIR /kakigooriworker
|
||||
COPY . .
|
||||
RUN cargo build --release
|
||||
|
||||
FROM cgr.dev/chainguard/static:latest
|
||||
FROM cgr.dev/chainguard/static:latest AS worker-amd64
|
||||
WORKDIR /kakigoori
|
||||
ARG TARGETARCH
|
||||
|
||||
COPY --from=builder /kakigooriworker/target/release/kakigoori-worker .
|
||||
COPY --from=git.prettysunflower.moe/prettysunflower/webp:libwebp-1.6.0-2 /usr/bin/cwebp /usr/bin/
|
||||
COPY --from=git.prettysunflower.moe/prettysunflower/avif:libavif-1.4.1-libaom-3.13.3-svta1psyex-3.0.2B /usr/bin/avifenc /usr/bin/
|
||||
COPY --from=git.prettysunflower.moe/prettysunflower/avif:libavif-1.4.1-libaom-3.13.3-svtav1psyex-3.0.2B-amd64 /usr/bin/avifenc /usr/bin/
|
||||
|
||||
FROM cgr.dev/chainguard/static:latest AS worker-arm64
|
||||
WORKDIR /kakigoori
|
||||
ARG TARGETARCH
|
||||
|
||||
COPY --from=builder /kakigooriworker/target/release/kakigoori-worker .
|
||||
COPY --from=git.prettysunflower.moe/prettysunflower/webp:libwebp-1.6.0-2 /usr/bin/cwebp /usr/bin/
|
||||
COPY --from=git.prettysunflower.moe/prettysunflower/avif:libavif-1.4.1-libaom-3.13.3-svtav1psyex-3.0.2B-arm64 /usr/bin/avifenc /usr/bin/
|
||||
|
||||
FROM worker-${TARGETARCH}
|
||||
|
||||
CMD ["/kakigoori/kakigoori-worker"]
|
||||
|
||||
Reference in New Issue
Block a user