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:
Florian Forster
2020-04-07 14:45:59 +02:00
committed by GitHub
parent c07ed83c41
commit 970586dfc9
2 changed files with 14 additions and 10 deletions

View File

@@ -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