diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3ddc903..1da5672 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ name: release on: workflow_run: - workflows: ['CI'] + workflows: ["CI"] types: - completed branches: @@ -33,7 +33,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v3.0.0 with: - versionSpec: '5.x' + versionSpec: "5.x" - name: Set SemVer Version uses: gittools/actions/gitversion/execute@v3.0.0 id: gitversion @@ -50,7 +50,7 @@ jobs: - name: Install Eirctl uses: ensono/actions/eirctl-setup@v0.3.1 - with: + with: version: 0.7.6 isPrerelease: false @@ -66,7 +66,7 @@ jobs: generate_release_notes: true token: ${{ secrets.GITHUB_TOKEN }} files: ./dist/* - prerelease: false + prerelease: true - name: release library run: | diff --git a/.github/workflows/release_container.yml b/.github/workflows/release_container.yml index 9a1c45d..96a2b23 100644 --- a/.github/workflows/release_container.yml +++ b/.github/workflows/release_container.yml @@ -2,19 +2,20 @@ name: Publish Container on: workflow_run: - workflows: ['Lint and Test'] + workflows: ["Lint and Test"] types: - completed - branches: + branches: - main + - master permissions: contents: write - packages: write + packages: write jobs: set-version-tag: - if: ${{ github.event.workflow_run.head_branch == 'main' }} + if: ${{ github.event.workflow_run.head_branch == 'master' }} runs-on: ubuntu-24.04 outputs: semVer: ${{ steps.gitversion.outputs.semVer }} @@ -27,7 +28,7 @@ jobs: - name: Install GitVersion uses: gittools/actions/gitversion/setup@v3.0 with: - versionSpec: '5.x' + versionSpec: "5.x" - name: Set SemVer Version uses: gittools/actions/gitversion/execute@v3.0 id: gitversion @@ -60,7 +61,9 @@ jobs: with: context: . push: true - build-args: Version=${{ needs.set-version-tag.outputs.semVer }},Revision=${{ github.sha }} + build-args: | + Version=${{ needs.set-version-tag.outputs.semVer }} + Revision=${{ github.sha }} tags: | - ghcr.io/ensono/eirctl:${{ needs.set-version-tag.outputs.semVer }} - platforms: linux/amd64,linux/arm64 # adjust as needed + ghcr.io/devlabfoundry/configmanager:${{ needs.set-version-tag.outputs.semVer }} + platforms: linux/amd64,linux/arm64 # adjust as needed diff --git a/.gitignore b/.gitignore index 573d3c6..7341b2b 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,6 @@ dist # local testers and local/ + +.configmanager +.trivy \ No newline at end of file