Skip to content

Commit fd2080a

Browse files
committed
feat: allow http traffic
1 parent 07f48a8 commit fd2080a

20 files changed

+304
-284
lines changed

Diff for: .ansible-lint

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
3+
# https://ansible-lint.readthedocs.io/en/latest/configuring/
4+
5+
skip_list:
6+
- experimental
7+
8+
...

Diff for: .github/labeler.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
13
# this file is for the labeler workflow job
24
# Documentation https://github.com/marketplace/actions/labeler
35

@@ -7,6 +9,6 @@
79
- ./*.md
810

911
"type: maintenance":
10-
- .dependabot/*
1112
- .github/workflows/*
12-
- src/**/goss.yaml.j2
13+
14+
...
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
---
2+
13
# This workflow will triage pull requests and apply a label based on the
24
# paths that are modified in the pull request.
35
#
46
# To use this workflow, you will need to set up a .github/labeler.yml
5-
# file with configuration. For more information, see:
7+
# file with configuration. For more information, see:
68
# https://github.com/actions/labeler/blob/master/README.md
79

810
on: # yamllint disable-line rule:truthy
@@ -12,11 +14,10 @@ name: 🏷️ Add labels
1214

1315
jobs:
1416
label:
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: 🏷️ Apply labels
18-
uses: actions/labeler@v4
19-
with:
20-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
17+
uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@master
18+
with:
19+
os: ubuntu-latest
20+
secrets:
21+
token: ${{ secrets.GITHUB_TOKEN }}
2122

2223
...

Diff for: .github/workflows/auto-merge-release.yaml

+9-10
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ name: 🤞 Auto merge release
1313

1414
jobs:
1515
auto-merge:
16-
if: github.actor == 'lotyp' && startsWith(github.head_ref, 'release-please--')
17-
runs-on: ubuntu-latest
18-
steps:
19-
- name: 🤞 Auto-merge pull request
20-
uses: peter-evans/enable-pull-request-automerge@v3
21-
with:
22-
pull-request-number: ${{ github.event.pull_request.number }}
23-
merge-method: merge
24-
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
25-
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
16+
uses: wayofdev/gh-actions/.github/workflows/auto-merge-release.yml@master
17+
with:
18+
os: ubuntu-latest
19+
pull-request-number: ${{ github.event.pull_request.number }}
20+
actor: lotyp
21+
merge-method: merge
22+
secrets:
23+
# to trigger other workflows, pass PAT token instead of GITHUB_TOKEN
24+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
2625

2726
...

Diff for: .github/workflows/build-latest.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
name: 🚀 Build docker images with latest tag
10+
11+
jobs:
12+
# https://docs.github.com/en/enterprise-cloud@latest/actions/learn-github-actions/expressions#example-returning-a-json-object
13+
prepare:
14+
runs-on: "ubuntu-latest"
15+
outputs:
16+
matrix: ${{ steps.matrix.outputs.matrix }}
17+
steps:
18+
- name: ⚙️ Generate matrix
19+
id: matrix
20+
run: |
21+
echo 'matrix={
22+
"os_name": ["alpine"],
23+
"build_type": ["dev", "k8s"]
24+
}' | tr -d '\n' >> "$GITHUB_OUTPUT"
25+
26+
build:
27+
needs: prepare
28+
strategy:
29+
matrix: ${{ fromJson(needs.prepare.outputs.matrix )}}
30+
uses: wayofdev/gh-actions/.github/workflows/build-image.yml@master
31+
with:
32+
os: "ubuntu-latest"
33+
push-to-hub: true
34+
image-namespace: "wayofdev/nginx"
35+
image-template-path: "./dist"
36+
image-template: ${{ matrix.php_version }}-${{ matrix.php_type }}-${{ matrix.os_name }}
37+
image-version: latest
38+
secrets:
39+
docker-username: ${{ secrets.DOCKER_USERNAME }}
40+
docker-password: ${{ secrets.DOCKER_TOKEN }}
41+
42+
...

Diff for: .github/workflows/build-release.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
3+
on: # yamllint disable-line rule:truthy
4+
release:
5+
types:
6+
- released
7+
8+
name: 🚀 Build docker images with release tag
9+
10+
jobs:
11+
# https://docs.github.com/en/enterprise-cloud@latest/actions/learn-github-actions/expressions#example-returning-a-json-object
12+
prepare:
13+
runs-on: "ubuntu-latest"
14+
outputs:
15+
matrix: ${{ steps.matrix.outputs.matrix }}
16+
version: ${{ steps.version.outputs.version }}
17+
steps:
18+
- name: ⚙️ Generate matrix
19+
id: matrix
20+
run: |
21+
echo 'matrix={
22+
"os_name": ["alpine"],
23+
"build_type": ["dev", "k8s"]
24+
}' | tr -d '\n' >> "$GITHUB_OUTPUT"
25+
26+
- name: ⚙️ Get version for image tag
27+
id: version
28+
run: |
29+
version=${{ github.ref_name }}
30+
version=${version#v}
31+
echo "version=$version" >> "$GITHUB_OUTPUT"
32+
33+
build:
34+
needs: prepare
35+
strategy:
36+
matrix: ${{ fromJson(needs.prepare.outputs.matrix )}}
37+
uses: wayofdev/gh-actions/.github/workflows/build-image.yml@master
38+
with:
39+
os: "ubuntu-latest"
40+
push-to-hub: true
41+
image-namespace: "wayofdev/nginx"
42+
image-template-path: "./dist"
43+
image-template: ${{ matrix.php_version }}-${{ matrix.php_type }}-${{ matrix.os_name }}
44+
image-version: ${{ needs.prepare.outputs.version }}
45+
secrets:
46+
docker-username: ${{ secrets.DOCKER_USERNAME }}
47+
docker-password: ${{ secrets.DOCKER_TOKEN }}
48+
49+
...

Diff for: .github/workflows/ci.yml

-120
This file was deleted.

Diff for: .github/workflows/create-release.yml

+8-25
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22

3+
# https://github.com/wayofdev/gh-actions/blob/master/.github/workflows/create-release.yml
34
# https://github.com/google-github-actions/release-please-action#release-types-supported
45

56
on: # yamllint disable-line rule:truthy
@@ -11,30 +12,12 @@ name: 📦 Create release
1112

1213
jobs:
1314
release:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: 🎉 Create release
17-
uses: google-github-actions/release-please-action@v3
18-
id: release
19-
with:
20-
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
21-
release-type: node
22-
package-name: docker-nginx
23-
default-branch: master
24-
changelog-types: |
25-
[
26-
{ "type": "feat", "section": "Features", "hidden": false },
27-
{ "type": "fix", "section": "Bug Fixes", "hidden": false },
28-
{ "type": "perf", "section": "Performance Improvements", "hidden": false },
29-
{ "type": "docs", "section": "Documentation", "hidden": false },
30-
{ "type": "chore", "section": "Miscellaneous", "hidden": false },
31-
{ "type": "style", "section": "Styles", "hidden": true },
32-
{ "type": "revert", "section": "Reverts", "hidden": true },
33-
{ "type": "deps", "section": "Dependencies", "hidden": true },
34-
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
35-
{ "type": "test", "section": "Tests", "hidden": true },
36-
{ "type": "build", "section": "Build System", "hidden": true },
37-
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
38-
]
15+
uses: wayofdev/gh-actions/.github/workflows/create-release.yml@master
16+
with:
17+
os: ubuntu-latest
18+
branch: master
19+
package-name: docker-nginx
20+
secrets:
21+
token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}
3922

4023
...

Diff for: .github/workflows/shellcheck.yml

+6-12
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,11 @@ permissions:
1010

1111
jobs:
1212
shellcheck:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: 📦 Check out the codebase
16-
uses: actions/checkout@v3
17-
with:
18-
fetch-depth: 0
19-
20-
- name: 🐞 Differential shell-check
21-
uses: redhat-plumbers-in-action/differential-shellcheck@v4
22-
with:
23-
severity: warning
24-
token: ${{ secrets.GITHUB_TOKEN }}
13+
uses: wayofdev/gh-actions/.github/workflows/shellcheck.yml@master
14+
with:
15+
os: ubuntu-latest
16+
severity: warning
17+
secrets:
18+
token: ${{ secrets.GITHUB_TOKEN }}
2519

2620
...

Diff for: .github/workflows/upload-assets.yml

-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
steps:
1616
- name: 📦 Check out the codebase
1717
uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0
2018

2119
- name: 🚀 Generate dist files
2220
run: make generate

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.idea
2-
/dist
2+
dist

0 commit comments

Comments
 (0)