Skip to content

Merge branch 'master' of https://github.com/Marcus1Pierce/Docker #6

Merge branch 'master' of https://github.com/Marcus1Pierce/Docker

Merge branch 'master' of https://github.com/Marcus1Pierce/Docker #6

Workflow file for this run

name: Build and push Docker image to dockerhub
on:
push:
branches: [ "master" ]
paths:
- 'Nextcloud/**'
- 'Caddy/**'
- 'Nextcloud-30/**'
jobs:
build-nextcloud:
if: contains(github.event.commits.*.modified, '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: contains(github.event.commits.*.modified, '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 Docker Image
uses: docker/build-push-action@v5
with:
context: ./Nextcloud
push: true
tags: marcus1pierce/nextcloud:30-fpm-${{ matrix.architecture }}
platforms: linux/${{ matrix.architecture }}
build-caddy:
if: contains(github.event.commits.*.modified, '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 }}