Skip to content

Commit

Permalink
fix: empty commit for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Forattini committed Aug 9, 2022
1 parent 5bb0412 commit 5249105
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/actions/create-dockerfile/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
required: false
default: "spa"
description: ""
params:
required: false
default: "{}"
description: ""

runs:
using: 'node16'
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/create-dockerfile/index.js.map

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions .github/workflows/svc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -426,19 +426,20 @@ jobs:
echo "### 🚢 Build" >> $GITHUB_STEP_SUMMARY
# pre-build
- name: Create .dockerignore
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerignore@main
if: steps.analysis.outputs.feature_has_dockerignore != true
with:
writeSummary: true
globsToIgnore: '["node_modules"]'

- name: Create Dockerfile
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerfile@main
if: steps.analysis.outputs.feature_has_dockerfile != true
with:
writeSummary: true
preset: node
params: '{"tag": "${{inputs.nodeVersion}}-slim"}'

- name: Create .dockerignore
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerignore@main
if: steps.analysis.outputs.feature_has_dockerignore != true
with:
writeSummary: true
globsToIgnore: '["node_modules"]'

# login
- name: Config | Login to Container Registry
Expand Down Expand Up @@ -495,18 +496,19 @@ jobs:
echo "### 🚢 Build" >> $GITHUB_STEP_SUMMARY
# pre-build
- name: Create .dockerignore
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerignore@main
if: steps.analysis.outputs.feature_has_dockerignore != true
with:
writeSummary: true

- name: Create Dockerfile
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerfile@main
if: steps.analysis.outputs.feature_has_dockerfile != true
with:
writeSummary: true
preset: python
params: '{"tag": "${{inputs.pythonVersion}}"}'

- name: Create .dockerignore
uses: filipeforattini/ff-iac-github-actions/.github/actions/create-dockerignore@main
if: steps.analysis.outputs.feature_has_dockerignore != true
with:
writeSummary: true

# login
- name: Config | Login to Container Registry
Expand Down
4 changes: 4 additions & 0 deletions src/actions/create-dockerfile/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ inputs:
required: false
default: "spa"
description: ""
params:
required: false
default: "{}"
description: ""

runs:
using: 'node16'
Expand Down
1 change: 1 addition & 0 deletions src/actions/create-dockerfile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const decode = (str) => qs.parse(str);
async function action() {
let preset = core.getInput("preset", { required: true });
let writeSummary = core.getBooleanInput("writeSummary", { required: true });

let overwriteParams = core.getInput("params", { required: false });
overwriteParams = JSON.parse(overwriteParams)

Expand Down

0 comments on commit 5249105

Please sign in to comment.