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 c31a20f commit a34453d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 34 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,7 @@ jobs:
with:
name: dist
path: dist
get_version:
needs: build
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: set-matrix
run: echo "::set-output name=matrix::{\"version\":\"0.0.1\"}"
publish_docker_hub:
needs: get_version
runs-on: ubuntu-latest
env:
CI: "true"
Expand Down
46 changes: 23 additions & 23 deletions .projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ const project = new NodeProject({
// const versionJSON = require('./version.json')

project.releaseWorkflow.addJobs({
get_version: {
needs: 'build',
'runs-on': 'ubuntu-latest',
outputs: {
matrix: '${{ steps.set-matrix.outputs.matrix }}'
},
'steps': [
{
name: 'Check out the repo',
uses: 'actions/checkout@v2',
},
{
name: 'set-matrix',
run: [
// 'JSON=$(cat ./version.json)',
'echo "::set-output name=matrix::{\\"version\\":\\"0.0.1\\"}"',
// 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"',
// 'echo "::set-output name=version::${JSON}"',
].join('\n'),
}
],
},
// get_version: {
// needs: 'build',
// 'runs-on': 'ubuntu-latest',
// outputs: {
// matrix: '${{ steps.set-matrix.outputs.matrix }}'
// },
// 'steps': [
// {
// name: 'Check out the repo',
// uses: 'actions/checkout@v2',
// },
// {
// name: 'set-matrix',
// run: [
// // 'JSON=$(cat ./version.json)',
// 'echo "::set-output name=matrix::{\\"version\\":\\"0.0.1\\"}"',
// // 'echo "::set-output name=matrix::${JSON//\'%\'/\'%25\'}"',
// // 'echo "::set-output name=version::${JSON}"',
// ].join('\n'),
// }
// ],
// },
publish_docker_hub: {
needs: 'get_version',
// needs: 'get_version',
// 'name': 'Release to NPM',
// 'needs': this.releaseWorkflowJobId,
'runs-on': 'ubuntu-latest',
Expand Down

0 comments on commit a34453d

Please sign in to comment.