Update Dockerfile #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Images to GHCR and Docker Hub | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
paths-ignore: | |
- '**.md' | |
- '.github/workflows/publish.yaml' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build, push, and deploy | |
runs-on: ubuntu-latest | |
environment: production | |
defaults: | |
run: | |
working-directory: . | |
shell: bash | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
- name: Minor version for each merge | |
id: autotagger | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
- uses: docker/setup-buildx-action@v3 | |
name: Customize Docker driver | |
with: | |
driver-opts: image=moby/buildkit:master | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: Build & push Multi-Arch Docker Image | |
with: | |
image: qor-caddy | |
tags: ${{ steps.autotagger.outputs.new_tag }}, latest | |
registry: ghcr.io | |
multiPlatform: true | |
overrideDriver: true | |
platform: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/ppc64le,linux/s390x | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: mr-smithers-excellent/docker-build-push@v6 | |
name: Build & push Docker image to docker.io for ${{ matrix.db-type }} | |
with: | |
image: mrrubberducky/qor-caddy | |
tags: ${{ steps.autotagger.outputs.new_tag }}, latest | |
registry: docker.io | |
multiPlatform: true | |
overrideDriver: true | |
platform: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/386,linux/ppc64le,linux/s390x | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} |