This commit is contained in:
29
.gitea/workflows/build.yml
Normal file
29
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Build production image in Kubernetes
|
||||
run: |
|
||||
set -euo pipefail
|
||||
image=registry.a2acloud.io/syncer/syncer
|
||||
docker build --platform linux/amd64 --pull \
|
||||
-t "$image:$GITHUB_SHA" \
|
||||
-t "$image:latest" \
|
||||
.
|
||||
|
||||
- name: Push immutable and release tags
|
||||
run: |
|
||||
set -euo pipefail
|
||||
image=registry.a2acloud.io/syncer/syncer
|
||||
docker push "$image:$GITHUB_SHA"
|
||||
docker push "$image:latest"
|
||||
Reference in New Issue
Block a user