Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Update CI files #11

Merged
merged 1 commit into from
Feb 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 5 additions & 5 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-1.0.4-${{ github.sha }}
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: 1.0.4 - 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/1.0.4
platforms: linux/386,linux/amd64,linux/arm64
Expand All @@ -119,7 +119,7 @@ jobs:
- name: 1.0.4 - 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/1.0.4
platforms: linux/386,linux/amd64,linux/arm64
Expand All @@ -132,7 +132,7 @@ jobs:

- name: 1.0.4 - 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/1.0.4
platforms: linux/386,linux/amd64,linux/arm64
Expand Down
1 change: 0 additions & 1 deletion generate/definitions/FILES.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
$FILES = @(
'.github/workflows/ci-master-pr.yml'
'.github/workflows/cron.yml'
'.github/release-drafter.yml'
'README.md'
)
52 changes: 0 additions & 52 deletions generate/templates/.github/release-drafter.yml.ps1

This file was deleted.

10 changes: 5 additions & 5 deletions generate/templates/.github/workflows/ci-master-pr.yml.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ foreach ($g in $groups) {
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Display system info (linux)
run: |
Expand All @@ -72,7 +72,7 @@ foreach ($g in $groups) {
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-$( $g.Name )-`${{ github.sha }}
Expand Down Expand Up @@ -121,7 +121,7 @@ foreach ($v in $g.Group) {
- name: $( $v['tag' ] ) - 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: $( $v['build_dir_rel'] )
platforms: $( $v['_metadata']['platforms'] -join ',' )
Expand All @@ -135,7 +135,7 @@ foreach ($v in $g.Group) {
- name: $( $v['tag' ] ) - 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: $( $v['build_dir_rel'] )
platforms: $( $v['_metadata']['platforms'] -join ',' )
Expand All @@ -148,7 +148,7 @@ foreach ($v in $g.Group) {

- name: $( $v['tag' ] ) - Build and push (release)
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: $( $v['build_dir_rel'] )
platforms: $( $v['_metadata']['platforms'] -join ',' )
Expand Down
Loading