diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5193cbb4b..df598e409 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -114,7 +114,7 @@ jobs: - name: Docker Run Test run: docker run $REGISTRY/$GITHUB_REPOSITORY/$IMAGE:${{ steps.vars.outputs.sha_short }} /bin/sh -c "ls -la ./app" - release: # TODO Implement Docker Push and latest TAG + release: runs-on: ubuntu-18.04 needs: [container-prod, container-test] env: @@ -132,5 +132,12 @@ jobs: run: docker pull $REGISTRY/$GITHUB_REPOSITORY/$IMAGE:${{ steps.vars.outputs.sha_short }} - name: Docker Tag run: docker tag $REGISTRY/$GITHUB_REPOSITORY/$IMAGE:${{ steps.vars.outputs.sha_short }} $REGISTRY/$GITHUB_REPOSITORY/$IMAGE - - name: Create Version - uses: caos/semantic-release@v1.1.0 \ No newline at end of file + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v2 + with: + dry_run: false + semantic_version: 17.0.4 + extra_plugins: | + @semantic-release/exec@v5.0.0 + semantic-release-docker@v2.2.0 + \ No newline at end of file diff --git a/.releaserc.js b/.releaserc.js index 220967f78..0f5c2d8f1 100644 --- a/.releaserc.js +++ b/.releaserc.js @@ -1,5 +1,5 @@ module.exports = { - branch: 'master', + branches: ["master"], plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", @@ -8,12 +8,9 @@ module.exports = { "prepareCmd": "echo '::set-env name=CAOS_NEXT_VERSION::v${nextRelease.version}'" }], ["semantic-release-docker", { - "verifyConditions": { - "registryUrl": "docker.pkg.github.com" - }, - "publish": { - "name": "caos/zitadel/zitadel" + "registryUrl": "docker.pkg.github.com", + "name": "caos/zitadel/zitadel" } - }], + ], ] }; \ No newline at end of file