▶️ Deploy Release Candidate #89
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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/checkout@v4.1.0 | |
- run : | | |
set -ex | |
git config --global user.name "Wildland Automation" | |
git config --global user.email "automated-script@wildland.io" | |
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 |