Skip to content

Commit

Permalink
Perbaikan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus1Pierce committed Nov 13, 2024
1 parent 243ed2b commit 7aebee8
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@ name: Build and push Docker image to dockerhub
on:
push:
branches: [ "master" ]
paths:
- 'Nextcloud/**'
- 'Nextcloud-30/**'
- 'Caddy/**'

jobs:

build-nextcloud:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'Nextcloud') }}
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -37,9 +33,11 @@ jobs:
push: true
tags: marcus1pierce/nextcloud:29-fpm-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
paths:
- 'Nextcloud/**'

build-nextcloud-30:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'Nextcloud-30') }}
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -65,9 +63,11 @@ jobs:
push: true
tags: marcus1pierce/nextcloud:30-fpm-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
paths:
- 'Nextcloud-30/**'

build-caddy:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'Caddy') }}
if: ${{ github.ref == 'refs/heads/master' }}
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -92,4 +92,6 @@ jobs:
context: ./Caddy
push: true
tags: marcus1pierce/caddy:2-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
paths:
- 'Caddy/**'

0 comments on commit 7aebee8

Please sign in to comment.