update cd workflow

This commit is contained in:
Sebastian Florek 2025-01-10 15:54:52 +01:00
parent d7cb83228f
commit 5fef878b67
No known key found for this signature in database
GPG Key ID: DBC7C083B0200A0F

View File

@ -10,7 +10,7 @@ on:
jobs: jobs:
publish: publish:
name: Build and push osbuilder image name: Build and Push OSBuilder Image
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
permissions: permissions:
contents: 'read' contents: 'read'
@ -45,7 +45,7 @@ jobs:
with: with:
username: mjgpluralsh username: mjgpluralsh
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
- name: Build and push - name: Build and Push
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
with: with:
context: "." context: "."
@ -59,6 +59,8 @@ jobs:
build-args: | build-args: |
GIT_COMMIT=${{ github.sha }} GIT_COMMIT=${{ github.sha }}
release: release:
name: Release Helm Chart and Create Github Release
if: startsWith(github.ref, 'refs/tags/') # Limit job to tag pushes
permissions: permissions:
contents: write contents: write
runs-on: ubuntu-latest runs-on: ubuntu-latest