From 970586dfc91a6796dfe2d3119db98ad61ae0e15d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 7 Apr 2020 14:45:59 +0200 Subject: [PATCH] chore(semantic-release): docker-release (#37) * chore: docker vars * test --dry-run * use correct args * test * test * well, myb * arg(h) * something is broken with args * try gh action * try to run semrel * use branches flag * releaserc * works * final --- .github/workflows/release.yml | 13 ++++++++++--- .releaserc.js | 11 ++++------- 2 files changed, 14 insertions(+), 10 deletions(-) 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