generated from wayofdev/docker-tpl
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
16 changed files
with
204 additions
and
224 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
|
||
# https://ansible-lint.readthedocs.io/en/latest/configuring/ | ||
|
||
skip_list: | ||
- experimental | ||
|
||
exclude_paths: | ||
- ./contrib | ||
- ./.venv | ||
|
||
... |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
name: 🚀 Build docker images with latest tag | ||
|
||
jobs: | ||
# https://docs.github.com/en/enterprise-cloud@latest/actions/learn-github-actions/expressions#example-returning-a-json-object | ||
prepare: | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
steps: | ||
- name: ⚙️ Generate matrix | ||
id: matrix | ||
run: | | ||
echo 'matrix={ | ||
"os_name": ["alpine"], | ||
"node_version": ["lts", "18", "20"] | ||
}' | tr -d '\n' >> $GITHUB_OUTPUT | ||
build: | ||
needs: prepare | ||
strategy: | ||
matrix: ${{ fromJson(needs.prepare.outputs.matrix )}} | ||
uses: wayofdev/gh-actions/.github/workflows/build-image.yml@master | ||
with: | ||
os: "ubuntu-latest" | ||
push-to-hub: ${{ github.event_name != 'pull_request' }} | ||
image-namespace: "wayofdev/node" | ||
image-template: ${{ matrix.node_version }}-${{ matrix.os_name }} | ||
image-version: latest | ||
secrets: | ||
docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
docker-password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
... |
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,45 @@ | ||
--- | ||
|
||
on: # yamllint disable-line rule:truthy | ||
release: | ||
types: | ||
- released | ||
|
||
name: 🚀 Build docker images with release tag | ||
|
||
jobs: | ||
# https://docs.github.com/en/enterprise-cloud@latest/actions/learn-github-actions/expressions#example-returning-a-json-object | ||
prepare: | ||
runs-on: "ubuntu-latest" | ||
outputs: | ||
matrix: ${{ steps.matrix.outputs.matrix }} | ||
steps: | ||
- name: ⚙️ Generate matrix | ||
id: matrix | ||
run: | | ||
echo 'matrix={ | ||
"os_name": ["alpine"], | ||
"node_version": ["lts", "18", "20"] | ||
}' | tr -d '\n' >> $GITHUB_OUTPUT | ||
- name: ⚙️ Get version for image tag | ||
id: version | ||
run: | | ||
echo "version=${{ github.ref_name#v }}" >> $GITHUB_OUTPUT | ||
build: | ||
needs: prepare | ||
strategy: | ||
matrix: ${{ fromJson(needs.prepare.outputs.matrix )}} | ||
uses: wayofdev/gh-actions/.github/workflows/build-image.yml@master | ||
with: | ||
os: "ubuntu-latest" | ||
push-to-hub: true | ||
image-namespace: "wayofdev/node" | ||
image-template: ${{ matrix.node_version }}-${{ matrix.os_name }} | ||
image-version: ${{ needs.prepare.outputs.version }} | ||
secrets: | ||
docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
docker-password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
... |
This file was deleted.
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
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
Oops, something went wrong.