ci : dmgnr
This commit is contained in:
+15
-36
@@ -6,7 +6,6 @@ on:
|
||||
|
||||
env:
|
||||
REGISTRY_IMAGE: registry.neko-piranha.ts.net/astral/buzz-sheet
|
||||
REGISTRY_HOST: registry.neko-piranha.ts.net
|
||||
DEPLOY_NAMESPACE: buzz-sheet
|
||||
|
||||
jobs:
|
||||
@@ -56,44 +55,24 @@ jobs:
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Sign in to the container registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ env.REGISTRY_HOST }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Build and push application image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
target: app
|
||||
platforms: linux/arm64
|
||||
push: true
|
||||
provenance: false
|
||||
tags: ${{ env.REGISTRY_IMAGE }}:${{ gitea.sha }}
|
||||
build-args: |
|
||||
NEXT_DEPLOYMENT_ID=${{ gitea.sha }}
|
||||
VCS_REF=${{ gitea.sha }}
|
||||
run: |
|
||||
docker build \
|
||||
--target app \
|
||||
--build-arg NEXT_DEPLOYMENT_ID=${{ gitea.sha }} \
|
||||
--build-arg VCS_REF=${{ gitea.sha }} \
|
||||
--tag ${{ env.REGISTRY_IMAGE }}:${{ gitea.sha }} \
|
||||
.
|
||||
docker push ${{ env.REGISTRY_IMAGE }}:${{ gitea.sha }}
|
||||
|
||||
- name: Build and push migration image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile
|
||||
target: migration
|
||||
platforms: linux/arm64
|
||||
push: true
|
||||
provenance: false
|
||||
tags: ${{ env.REGISTRY_IMAGE }}:migrate-${{ gitea.sha }}
|
||||
build-args: VCS_REF=${{ gitea.sha }}
|
||||
run: |
|
||||
docker build \
|
||||
--target migration \
|
||||
--build-arg VCS_REF=${{ gitea.sha }} \
|
||||
--tag ${{ env.REGISTRY_IMAGE }}:migrate-${{ gitea.sha }} \
|
||||
.
|
||||
docker push ${{ env.REGISTRY_IMAGE }}:migrate-${{ gitea.sha }}
|
||||
|
||||
- name: Set up kubectl
|
||||
uses: azure/setup-kubectl@v4
|
||||
|
||||
@@ -252,8 +252,6 @@ Configure these Gitea secrets later:
|
||||
|
||||
| Secret | Purpose |
|
||||
| --- | --- |
|
||||
| `REGISTRY_USERNAME` | Container registry login |
|
||||
| `REGISTRY_PASSWORD` | Container registry login |
|
||||
| `KUBE_CONFIG_B64` | Base64 kubeconfig for the `ci-deployer` identity |
|
||||
| `REDIS_INTEGRATION_URL` | Optional isolated Redis endpoint for CI integration coverage |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user