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