Skip to content

Commit

Permalink
supports building multiple image by gitea actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mayswind committed Sep 2, 2023
1 parent 158563f commit 6b30a0a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitea/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up the environment
run: |
cat >> docker/custom-backend-pre-setup.sh <<EOF
Expand All @@ -41,6 +47,7 @@ jobs:
with:
file: Dockerfile
context: .
platforms: ${{ vars.BUILD_PLATFORMS }}
push: true
build-args: |
RELEASE_BUILD=1
Expand Down
7 changes: 7 additions & 0 deletions .gitea/workflows/docker-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
type=raw,value=latest-snapshot
type=sha,format=short,prefix=SNAPSHOT-
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up the environment
run: |
sed -i 's#FROM #FROM ${{ secrets.DOCKER_REPO }}/mirrors/#g' Dockerfile
Expand All @@ -42,6 +48,7 @@ jobs:
with:
file: Dockerfile
context: .
platforms: ${{ vars.BUILD_PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 6b30a0a

Please sign in to comment.