v0.0.19 #23
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
--- | |
name: release | |
on: | |
release: | |
types: | |
- created | |
env: | |
GO_VERSION: "1.21" | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yaml | |
test: | |
uses: ./.github/workflows/test.yaml | |
release: | |
needs: | |
- lint | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- name: install devspace | |
run: | | |
curl -L -o devspace \ | |
"https://github.com/loft-sh/devspace/releases/download/${{ vars.DEVSPACE_VERSION}}/devspace-linux-amd64" && | |
install -c -m 0755 devspace /usr/local/bin | |
working-directory: /tmp | |
- name: install helm | |
run: | | |
curl -L -o helm.tar.gz \ | |
"https://get.helm.sh/helm-${{ vars.HELM_VERSION}}-linux-amd64.tar.gz" | |
tar -zxvf helm.tar.gz | |
mv linux-amd64/helm /usr/local/bin/helm | |
working-directory: /tmp | |
- name: login to ghcr | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: build and push images | |
run: | | |
RELEASE_TAG=${{ github.ref_name }} | |
RELEASE_VERSION=${RELEASE_TAG#v} | |
devspace run build --profile release --var RELEASE_VERSION=$RELEASE_VERSION | |
- name: package and push charts | |
run: | | |
RELEASE_TAG=${{ github.ref_name }} | |
RELEASE_VERSION=${RELEASE_TAG#v} | |
helm registry login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io | |
make set-chart-versions $RELEASE_VERSION | |
helm package charts/clicker --version $RELEASE_VERSION | |
helm push clicker-$RELEASE_VERSION.tgz oci://ghcr.io/srl-labs/clabernetes | |
helm package charts/clabernetes --version $RELEASE_VERSION | |
helm push clabernetes-$RELEASE_VERSION.tgz oci://ghcr.io/srl-labs/clabernetes |