Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/_deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,15 @@ on:
description: OCIR repository that receives the web image
required: true
type: string
gitops_overlay_path:
description: Kustomize overlay path in waffle-world-oci
required: true
type: string
secrets:
OCI_AUTH_TOKEN:
required: true
DEPLOYER_APP_PRIVATE_KEY:
required: true

permissions:
contents: read
Expand All @@ -18,6 +24,9 @@ jobs:
deploy:
name: Build and push web image
runs-on: ubuntu-24.04-arm
concurrency:
group: deploy-${{ inputs.ocir_repository }}
cancel-in-progress: true

env:
IMAGE_TAG: ${{ github.run_number }}
Expand All @@ -44,3 +53,13 @@ jobs:

- name: Push web image
run: docker push "$OCIR_REGISTRY/$OCIR_NAMESPACE/$OCIR_REPOSITORY:$IMAGE_TAG"

- name: Update GitOps image tag
uses: wafflestudio/waffle-world-oci/.github/actions/update-image@main
with:
image: ${{ env.OCIR_REGISTRY }}/${{ env.OCIR_NAMESPACE }}/${{ env.OCIR_REPOSITORY }}
tag: ${{ env.IMAGE_TAG }}
# The OCIR repository includes the service suffix, while the GitOps
# overlay is rooted at the environment directory (for example, argocd/allclear-dev).
overlay-path: ${{ inputs.gitops_overlay_path }}
private-key: ${{ secrets.DEPLOYER_APP_PRIVATE_KEY }}
2 changes: 2 additions & 0 deletions .github/workflows/deploy-web-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
uses: ./.github/workflows/_deploy-web.yml
with:
ocir_repository: allclear-dev/allclear-web
gitops_overlay_path: argocd/allclear-dev
secrets:
OCI_AUTH_TOKEN: ${{ secrets.OCI_AUTH_TOKEN }}
DEPLOYER_APP_PRIVATE_KEY: ${{ secrets.DEPLOYER_APP_PRIVATE_KEY }}
2 changes: 2 additions & 0 deletions .github/workflows/deploy-web-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
uses: ./.github/workflows/_deploy-web.yml
with:
ocir_repository: allclear-prod/allclear-web
gitops_overlay_path: argocd/allclear-prod
secrets:
OCI_AUTH_TOKEN: ${{ secrets.OCI_AUTH_TOKEN }}
DEPLOYER_APP_PRIVATE_KEY: ${{ secrets.DEPLOYER_APP_PRIVATE_KEY }}
Loading