Rename podPath to path #20
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
# 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 |