Skip to content

Commit

Permalink
Setup github workflow for release this software
Browse files Browse the repository at this point in the history
  • Loading branch information
seb-schulz committed Oct 29, 2023
1 parent 4dd6959 commit 3636b12
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
on:
push:
tags:
- 'v*.*.*'
jobs:
build-and-push-container:
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set env
run: echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV
- name: Version of buildah
run: buildah version
- run: make build
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ghcr.io/seb-schulz
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make push
build-helm-chart:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
- name: Helm Chart Releaser
uses: helm/[email protected]
with:
charts_dir: deploy
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ BUILDAH_ARGS ?= --squash
build:
$(BUILDAH_BIN) bud $(BUILDAH_ARGS) -t $(IMAGE):$(VERSION)

.PHONY: push
push:
$(BUILDAH_BIN) push $(IMAGE):$(VERSION)

.PHONY: test-latest
test-latest:
./scripts/test-apply.sh $(IMAGE) $(VERSION)

0 comments on commit 3636b12

Please sign in to comment.