[v2.9] fix flux 2.2 oci helmrepository health check #25
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_v28 | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
paths: | |
- patches-argo-cd-v2.8/** | |
- patches-gitops-engine-v2.0.0/** | |
- VERSION_28 | |
- .github/workflows/build_v28.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 "[email protected]" | |
- name: Get branch names | |
id: branch-name | |
uses: tj-actions/[email protected] | |
- 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.8 | |
run: | | |
ln -s VERSION_28 VERSION | |
ln -s patches-argo-cd-v2.8 patches-argo-cd | |
ln -s patches-gitops-engine-v2.0.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 |