Skip to content

Test workflow

Test workflow #9

Workflow file for this run

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') }}
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Login to dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Nextcloud Docker Image
uses: docker/build-push-action@v5
with:
context: ./Nextcloud
push: true
tags: marcus1pierce/nextcloud:29-fpm-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
build-nextcloud-30:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'Nextcloud-30') }}
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Login to dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Nextcloud 30 Docker Image
uses: docker/build-push-action@v5
with:
context: ./Nextcloud-30
push: true
tags: marcus1pierce/nextcloud:30-fpm-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
build-caddy:
if: ${{ github.event_name == 'push' && contains(github.event.head_commit.message, 'Caddy') }}
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup QEMU
uses: docker/setup-qemu-action@v2
- name: Login to dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Caddy Docker Image
uses: docker/build-push-action@v5
with:
context: ./Caddy
push: true
tags: marcus1pierce/caddy:2-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}