Update to templates-controller 0.3.0 (drop cert-manager requirement) … #101
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
on: | |
push: | |
tags: [v*.*.*] | |
name: release | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yaml | |
with: | |
helmrepo: "releases/charts-v3" | |
secrets: | |
BUILD_BOT_PERSONAL_ACCESS_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }} | |
WGE_DOCKER_IO_USER: ${{ secrets.WGE_DOCKER_IO_USER }} | |
WGE_DOCKER_IO_PASSWORD: ${{ secrets.WGE_DOCKER_IO_PASSWORD }} | |
WGE_S3_AWS_ACCESS_KEY_ID: ${{ secrets.WGE_S3_AWS_ACCESS_KEY_ID }} | |
WGE_S3_AWS_SECRET_ACCESS_KEY: ${{ secrets.WGE_S3_AWS_SECRET_ACCESS_KEY }} | |
releaser: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Build Changelog | |
id: github_release | |
uses: mikepenz/release-changelog-builder-action@v2 | |
with: | |
configuration: "${{ github.workspace }}/.github/workflows/changelog_configuration.json" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
prerelease: true | |
body: ${{steps.github_release.outputs.changelog}} | |
goreleaser: | |
runs-on: ubuntu-latest | |
needs: releaser | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version: 1.20.x | |
- name: Configure git for private modules | |
env: | |
GITHUB_BUILD_USERNAME: wge-build-bot | |
GITHUB_BUILD_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }} | |
run: | | |
git config --global url."https://${GITHUB_BUILD_USERNAME}:${GITHUB_BUILD_TOKEN}@github.com".insteadOf "https://github.com" | |
- name: Set env var | |
run: | | |
echo "LDFLAGS=$(make echo-ldflags)" >> $GITHUB_ENV | |
echo "GORELEASER_PREVIOUS_TAG=$(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))" >> $GITHUB_ENV | |
echo "GORELEASER_CURRENT_TAG=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1-node16 | |
with: | |
aws-access-key-id: ${{ secrets.WGE_S3_AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.WGE_S3_AWS_SECRET_ACCESS_KEY }} | |
aws-region: eu-central-1 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v1 | |
with: | |
version: latest | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.BUILD_BOT_PERSONAL_ACCESS_TOKEN }} |