Skip to content

Commit 12173bd

Browse files
committed
Simplify action by processing all images
1 parent 652b3b8 commit 12173bd

1 file changed

Lines changed: 2 additions & 21 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
1-
name: Build and Push Changed Container Images
1+
name: Build and Push Container Images
22

33
on:
44
push:
55
branches:
66
- main
77

88
jobs:
9-
detect-changes:
10-
runs-on: ubuntu-latest
11-
outputs:
12-
changed_folders: ${{ steps.filter.outputs.changed_folders }}
13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
16-
with:
17-
fetch-depth: 0
18-
- name: Get changed Containerfiles
19-
id: filter
20-
run: |
21-
# Find changed Containerfiles in subfolders
22-
CHANGED=$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep '^[^/]\+/.*' | sed 's,/.*,,' | sort -u | xargs)
23-
FOLDERS=$(echo "$CHANGED" | sed 's/\/Containerfile$//' | xargs)
24-
echo "changed_folders=$FOLDERS" >> $GITHUB_OUTPUT
25-
269
build-and-push:
27-
needs: detect-changes
2810
runs-on: ubuntu-latest
29-
if: ${{ needs.detect-changes.outputs.changed_folders != '' }}
3011
strategy:
3112
matrix:
32-
folder: ${{ fromJson('[''${{ needs.detect-changes.outputs.changed_folders }}'']') }}
13+
folder: [proton]
3314
arch: [amd64, arm64]
3415
steps:
3516
- name: Checkout code

0 commit comments

Comments
 (0)