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 d3120c5 commit 90af6cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,10 @@ jobs:
needs: build
runs-on: ubuntu-latest
outputs:
version: 0.0.3
version: ${{ steps.setversion.outputs.version }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: set-matrix
run: echo "::set-output name=version::0.0.2"
- name: setversion
run: echo "::set-output name=version::0.0.4"
publish_docker_hub:
needs: getversion
runs-on: ubuntu-latest
Expand Down
20 changes: 10 additions & 10 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ project.releaseWorkflow.addJobs({
'runs-on': 'ubuntu-latest',
outputs: {
// matrix: '${{ steps.set-matrix.outputs.matrix }}'
// version: '${{ steps.set-matrix.outputs.version }}'
version: '0.0.3'
version: '${{ steps.setversion.outputs.version }}'
// version: '0.0.3'
},
'steps': [
// {
// name: 'Check out the repo',
// uses: 'actions/checkout@v2',
// },
{
name: 'Check out the repo',
uses: 'actions/checkout@v2',
},
{
name: 'set-matrix',
run: [
name: 'setversion',
run: //[
// 'JSON=$(cat ./version.json)',
// 'echo "::set-output name=matrix::{\\"include\\":[{\\"version\\":\\"0.0.2\\"}]}"',
'echo "::set-output name=version::0.0.2"',
'echo "::set-output name=version::0.0.4"'
// 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"',
// 'echo "::set-output name=version::${JSON}"',
].join('\n'),
//].join('\n'),
}
],
},
Expand Down

0 comments on commit 90af6cc

Please sign in to comment.