-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Filipe Forattini
committed
Jul 18, 2022
1 parent
f85d900
commit e2c750f
Showing
8 changed files
with
76 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'Static code analysis' | ||
description: 'Greet someone' | ||
|
||
inputs: | ||
environment: | ||
description: 'Environment target' | ||
required: false | ||
default: 'dev' | ||
cached: | ||
description: 'Inform the main repository language' | ||
required: false | ||
default: 'true' | ||
platforms: | ||
description: "Multi plataform container builds" | ||
required: false | ||
default: "linux/386,linux/amd64,linux/arm/v7,linux/arm/v8,linux/arm64,linux/ppc64le,linux/s390x" | ||
|
||
runs: | ||
using: "composite" | ||
|
||
steps: | ||
- name: Pipeline config scrapper | ||
id: analysis | ||
uses: filipeforattini/ff-iac-github-actions/.github/actions/config-scrapper@main | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
if: inputs.cached == 'false' | ||
with: | ||
context: . | ||
push: true | ||
platforms: ${{ inputs.platforms }} | ||
tags: ${{steps.analysis.outputs.build_tags}} | ||
build-args: ${{steps.analysis.outputs.build_args}} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v2 | ||
if: inputs.cached == 'true' | ||
with: | ||
context: . | ||
push: true | ||
platforms: ${{ inputs.platforms }} | ||
build-args: ${{steps.analysis.outputs.build_args}} | ||
tags: ${{steps.analysis.outputs.deploy_tags}} | ||
cache-from: type=local,src=/tmp/.buildx-cache | ||
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters