Skip to content

ensure AppWrapper controller sets PodsReady condition on Workload (#1… #34

ensure AppWrapper controller sets PodsReady condition on Workload (#1…

ensure AppWrapper controller sets PodsReady condition on Workload (#1… #34

Workflow file for this run

# Actions to take when a release is tagged
name: release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
release:
runs-on: ubuntu-latest
if: github.repository == 'project-codeflare/appwrapper'
steps:
- name: checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: validate tag format
run: |
if [[ ${GITHUB_REF_NAME} =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$ ]]; then
echo "Tag format is valid."
else
echo "Invalid tag format: ${GITHUB_REF_NAME}"
exit 1
fi
echo "RELEASE_VERSION=${GITHUB_REF_NAME}" >> "$GITHUB_ENV"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: docker login
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- name: Build and Push Images
run: |
make docker-buildx -e TAG=${RELEASE_VERSION} -e quay_repository=quay.io/ibm
- name: Create Install YAML
run: |
make build-installer -e TAG=${RELEASE_VERSION} -e quay_repository=quay.io/ibm
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
name: Release ${{ env.RELEASE_VERSION }}
generate_release_notes: true
fail_on_unmatched_files: true
files: |
./dist/install.yaml