Skip to content

Commit

Permalink
Merge pull request #36 from theohbrothers/refactor/update-ci-files-20…
Browse files Browse the repository at this point in the history
…24-02-25

Refactor: Update CI files
  • Loading branch information
theohbrothersbot authored Mar 2, 2024
2 parents 05a181e + 1c8c6a3 commit 30e0a58
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 101 deletions.
4 changes: 4 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ categories:
- title: '🚀 Features'
labels:
- 'feature'
- title: '✨ Enhancements'
labels:
- 'enhancement'
- title: '🎚 Change'
labels:
- 'change'
- title: '🐛 Bug Fixes'
labels:
Expand Down
84 changes: 42 additions & 42 deletions .github/workflows/ci-master-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Display system info (linux)
run: |
Expand All @@ -61,7 +61,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-3.17-${{ github.sha }}
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: 3.17-curl-git-jq-ssh - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -119,7 +119,7 @@ jobs:
- name: 3.17-curl-git-jq-ssh - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -132,7 +132,7 @@ jobs:

- name: 3.17-curl-git-jq-ssh - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: 3.17-curl-mysqlclient-openssl - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -187,7 +187,7 @@ jobs:
- name: 3.17-curl-mysqlclient-openssl - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -200,7 +200,7 @@ jobs:

- name: 3.17-curl-mysqlclient-openssl - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
- name: 3.17-iptables - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -254,7 +254,7 @@ jobs:
- name: 3.17-iptables - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -267,7 +267,7 @@ jobs:

- name: 3.17-iptables - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
- name: 3.17-rsync - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -321,7 +321,7 @@ jobs:
- name: 3.17-rsync - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -334,7 +334,7 @@ jobs:

- name: 3.17-rsync - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.17-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -358,7 +358,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Display system info (linux)
run: |
Expand All @@ -382,7 +382,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-3.15-${{ github.sha }}
Expand Down Expand Up @@ -426,7 +426,7 @@ jobs:
- name: 3.15-curl-git-jq-ssh - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -440,7 +440,7 @@ jobs:
- name: 3.15-curl-git-jq-ssh - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -453,7 +453,7 @@ jobs:

- name: 3.15-curl-git-jq-ssh - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
- name: 3.15-curl-mysqlclient-openssl - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -507,7 +507,7 @@ jobs:
- name: 3.15-curl-mysqlclient-openssl - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -520,7 +520,7 @@ jobs:

- name: 3.15-curl-mysqlclient-openssl - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -560,7 +560,7 @@ jobs:
- name: 3.15-iptables - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -574,7 +574,7 @@ jobs:
- name: 3.15-iptables - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -587,7 +587,7 @@ jobs:

- name: 3.15-iptables - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -627,7 +627,7 @@ jobs:
- name: 3.15-rsync - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -641,7 +641,7 @@ jobs:
- name: 3.15-rsync - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -654,7 +654,7 @@ jobs:

- name: 3.15-rsync - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.15-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -678,7 +678,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Display system info (linux)
run: |
Expand All @@ -702,7 +702,7 @@ jobs:
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-3.12-${{ github.sha }}
Expand Down Expand Up @@ -746,7 +746,7 @@ jobs:
- name: 3.12-curl-git-jq-ssh - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -760,7 +760,7 @@ jobs:
- name: 3.12-curl-git-jq-ssh - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -773,7 +773,7 @@ jobs:

- name: 3.12-curl-git-jq-ssh - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-git-jq-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -813,7 +813,7 @@ jobs:
- name: 3.12-curl-mysqlclient-openssl - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -827,7 +827,7 @@ jobs:
- name: 3.12-curl-mysqlclient-openssl - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -840,7 +840,7 @@ jobs:

- name: 3.12-curl-mysqlclient-openssl - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-curl-mysqlclient-openssl
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -880,7 +880,7 @@ jobs:
- name: 3.12-iptables - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -894,7 +894,7 @@ jobs:
- name: 3.12-iptables - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -907,7 +907,7 @@ jobs:

- name: 3.12-iptables - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-iptables
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down Expand Up @@ -947,7 +947,7 @@ jobs:
- name: 3.12-rsync - Build (PRs)
# Run only on pull requests
if: github.event_name == 'pull_request'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -961,7 +961,7 @@ jobs:
- name: 3.12-rsync - Build and push (master)
# Run only on master
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand All @@ -974,7 +974,7 @@ jobs:

- name: 3.12-rsync - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: variants/3.12-rsync
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/s390x
Expand Down
1 change: 0 additions & 1 deletion generate/definitions/FILES.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Files' definition
$FILES = @(
'.github/workflows/ci-master-pr.yml'
'.github/release-drafter.yml'
'README.md'
)
Loading

0 comments on commit 30e0a58

Please sign in to comment.