Skip to content

▶️ Deploy Release Candidate #65

▶️ Deploy Release Candidate

▶️ Deploy Release Candidate #65

Workflow file for this run

---
name: ▶️ Deploy Release Candidate
on:
workflow_dispatch:
env:
ARGO_REPOSITORY: "https://doesnt-matter:${{ secrets.GITLAB_PAT_OCTANT_K8S_DEVOPS_REPOSITORY_WRITE }}@gitlab.com/golemfoundation/devops/iac/k8s/wildland-k8s-devops.git"
ARGO_REPOSITORY_BRANCH: "github/octant-release-candidate"
IMAGE_TAG: "${{ github.sha }}"
GITLAB_PAT_OCTANT_K8S_DEVOPS_REPOSITORY_WRITE: "${{ secrets.GITLAB_PAT_OCTANT_K8S_DEVOPS_REPOSITORY_WRITE }}"
jobs:
build:
name: Build
uses: ./.github/workflows/tpl-images.yml
secrets: inherit
with:
image-tag: ${{ github.sha }}
git-ref: ${{ github.ref }}
deploy:
name: Deploy
needs:
- build
runs-on:
- general
container:
image: registry.gitlab.com/golemfoundation/devops/container-builder/gitops-builder:2ea6d57c
credentials:
username: "doesnt-matter"
password: "${{ secrets.GITLAB_PAT_CONTAINER_BUILDER_DOCKER_IMAGES_READ }}"
steps:
- uses: actions/[email protected]
- run : |
set -ex
git config --global user.name "Wildland Automation"
git config --global user.email "[email protected]"
GIT_DIR=`mktemp -d`
git clone -b $ARGO_REPOSITORY_BRANCH $ARGO_REPOSITORY $GIT_DIR
pushd $GIT_DIR
yq -y -i -e ".[].value.value = \"$IMAGE_TAG\"" mainnet/octant-image.values.yaml
git add mainnet/octant-image.values.yaml
git commit -m "Changed octant image tag to $IMAGE_TAG at $(date +%Y-%m-%d)" || true
git push
shell: bash