From 9013eb8dbc0f84624d6658f4fdff27b6b6c0c9c6 Mon Sep 17 00:00:00 2001 From: Paul Hildebrandt Date: Wed, 26 Jun 2024 14:55:53 +0200 Subject: [PATCH] tagger and build-container Signed-off-by: Paul Hildebrandt --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..593a499 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +# create tag +# build container +# create github release +# push it to registry.scs.community + +name: release-builder +on: + push: + branches: + - build-pipeline +jobs: + tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }} + build-container: + runs-on: ubuntu-latest + container: docker + steps: + - uses: actions/checkout@v4 + - run: docker build -t cluster-gen . \ No newline at end of file