mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
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
This commit is contained in:
parent
c07ed83c41
commit
970586dfc9
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -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
|
||||
- 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
|
||||
|
@ -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"
|
||||
}
|
||||
}],
|
||||
],
|
||||
]
|
||||
};
|
Loading…
Reference in New Issue
Block a user