[v2.9] add flamingo/{kind}-replace to replace spec #17
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: build_v29 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- patches-argo-cd-v2.9/** | |
- patches-gitops-engine-v2.2.0/** | |
- VERSION_29 | |
- .github/workflows/build_v29.yaml | |
permissions: | |
contents: write | |
id-token: write | |
packages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: install stgit | |
shell: bash | |
run: | | |
sudo apt-get install -y stgit | |
git config --global user.name "Chanwit Kaewkasi" | |
git config --global user.email "chanwit@gmail.com" | |
- name: Get branch names | |
id: branch-name | |
uses: tj-actions/branch-names@v5.1 | |
- name: Prepare | |
id: prep | |
run: | | |
VERSION="${{ steps.branch-name.outputs.current_branch }}-${GITHUB_SHA::8}" | |
echo ::set-output name=VERSION::${VERSION} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build v2.9 | |
run: | | |
ln -s VERSION_29 VERSION | |
ln -s patches-argo-cd-v2.9 patches-argo-cd | |
ln -s patches-gitops-engine-v2.2.0 patches-gitops-engine | |
rm -rf argo-cd || true | |
bash -x ./init.sh | |
source ./VERSION | |
VERSION=${BASE_VERSION}-${SUFFIX_VERSION}-${{ steps.prep.outputs.VERSION }} | |
( cd argo-cd && IMAGE_NAMESPACE=ghcr.io/flux-subsystem-argo/fsa IMAGE_TAG=$VERSION DOCKER_PUSH=true make image ) | |
unlink patches-argo-cd | |
unlink VERSION |