Skip to content

Commit

Permalink
Merge pull request #44 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 c3e512c + 64bf5f4 commit 56b03e4
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 93 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
68 changes: 34 additions & 34 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-2.8.1-${{ github.sha }}
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: 2.8.1 - 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/2.8.1
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -119,7 +119,7 @@ jobs:
- name: 2.8.1 - 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/2.8.1
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -132,7 +132,7 @@ jobs:

- name: 2.8.1 - 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/2.8.1
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: 2.8.1-libvirt-8 - 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/2.8.1-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -187,7 +187,7 @@ jobs:
- name: 2.8.1-libvirt-8 - 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/2.8.1-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -200,7 +200,7 @@ jobs:

- name: 2.8.1-libvirt-8 - 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/2.8.1-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -240,7 +240,7 @@ jobs:
- name: 2.8.1-curl-git-jq-sops-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/2.8.1-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -254,7 +254,7 @@ jobs:
- name: 2.8.1-curl-git-jq-sops-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/2.8.1-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -267,7 +267,7 @@ jobs:

- name: 2.8.1-curl-git-jq-sops-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/2.8.1-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -307,7 +307,7 @@ jobs:
- name: 2.8.1-libvirt-7 - 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/2.8.1-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -321,7 +321,7 @@ jobs:
- name: 2.8.1-libvirt-7 - 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/2.8.1-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -334,7 +334,7 @@ jobs:

- name: 2.8.1-libvirt-7 - 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/2.8.1-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -374,7 +374,7 @@ jobs:
- name: 2.8.1-libvirt-6 - 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/2.8.1-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -388,7 +388,7 @@ jobs:
- name: 2.8.1-libvirt-6 - 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/2.8.1-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -401,7 +401,7 @@ jobs:

- name: 2.8.1-libvirt-6 - 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/2.8.1-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -425,7 +425,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 @@ -449,7 +449,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-2.7.0-${{ github.sha }}
Expand Down Expand Up @@ -493,7 +493,7 @@ jobs:
- name: 2.7.0 - 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/2.7.0
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -507,7 +507,7 @@ jobs:
- name: 2.7.0 - 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/2.7.0
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -520,7 +520,7 @@ jobs:

- name: 2.7.0 - 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/2.7.0
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -560,7 +560,7 @@ jobs:
- name: 2.7.0-libvirt-8 - 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/2.7.0-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -574,7 +574,7 @@ jobs:
- name: 2.7.0-libvirt-8 - 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/2.7.0-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -587,7 +587,7 @@ jobs:

- name: 2.7.0-libvirt-8 - 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/2.7.0-libvirt-8
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -627,7 +627,7 @@ jobs:
- name: 2.7.0-curl-git-jq-sops-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/2.7.0-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -641,7 +641,7 @@ jobs:
- name: 2.7.0-curl-git-jq-sops-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/2.7.0-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -654,7 +654,7 @@ jobs:

- name: 2.7.0-curl-git-jq-sops-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/2.7.0-curl-git-jq-sops-ssh
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -694,7 +694,7 @@ jobs:
- name: 2.7.0-libvirt-7 - 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/2.7.0-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -708,7 +708,7 @@ jobs:
- name: 2.7.0-libvirt-7 - 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/2.7.0-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -721,7 +721,7 @@ jobs:

- name: 2.7.0-libvirt-7 - 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/2.7.0-libvirt-7
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand Down Expand Up @@ -761,7 +761,7 @@ jobs:
- name: 2.7.0-libvirt-6 - 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/2.7.0-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -775,7 +775,7 @@ jobs:
- name: 2.7.0-libvirt-6 - 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/2.7.0-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
Expand All @@ -788,7 +788,7 @@ jobs:

- name: 2.7.0-libvirt-6 - 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/2.7.0-libvirt-6
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
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'
)
52 changes: 0 additions & 52 deletions generate/templates/.github/release-drafter.yml.ps1

This file was deleted.

Loading

0 comments on commit 56b03e4

Please sign in to comment.