Skip to content

Commit

Permalink
feat: use releaseworkflow for docker hub release
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuller88 committed Jan 27, 2021
1 parent 3fdf919 commit 8889117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,18 @@ jobs:
needs: build
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
version: ${{ steps.set-matrix.outputs.version }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: set-matrix
run: echo "::set-output name=matrix::{\"version\":\"0.0.2\"}"
run: echo "::set-output name=version::0.0.2
publish_docker_hub:
needs: getversion
runs-on: ubuntu-latest
env:
CI: "true"
VERSION: ${{fromJSON(needs.getversion.outputs.matrix)}}
VERSION: ${{ needs.getversion.outputs.version }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
Expand Down
7 changes: 4 additions & 3 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ project.releaseWorkflow.addJobs({
needs: 'build',
'runs-on': 'ubuntu-latest',
outputs: {
matrix: '${{ steps.set-matrix.outputs.matrix }}'
// matrix: '${{ steps.set-matrix.outputs.matrix }}'
version: '${{ steps.set-matrix.outputs.version }}'
},
'steps': [
{
Expand All @@ -30,7 +31,7 @@ project.releaseWorkflow.addJobs({
run: [
// 'JSON=$(cat ./version.json)',
// 'echo "::set-output name=matrix::{\\"include\\":[{\\"version\\":\\"0.0.2\\"}]}"',
'echo "::set-output name=matrix::{\\"version\\":\\"0.0.2\\"}"',
'echo "::set-output name=version::0.0.2',
// 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"',
// 'echo "::set-output name=version::${JSON}"',
].join('\n'),
Expand All @@ -44,7 +45,7 @@ project.releaseWorkflow.addJobs({
'runs-on': 'ubuntu-latest',
env: {
CI: "true",
VERSION: '${{fromJSON(needs.getversion.outputs.matrix)}}',
VERSION: '${{ needs.getversion.outputs.version }}',
},
// strategy: {
// matrix: '${{fromJson(needs.getversion.outputs.matrix)}}',
Expand Down

0 comments on commit 8889117

Please sign in to comment.