2022-09-04 12:35:28 +00:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
|
|
|
|
schedule:
|
|
|
|
# * is a special character in YAML so you have to quote this string
|
|
|
|
- cron: '0 */6 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build-push:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
# arm64 specific
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
# arm64 specific
|
|
|
|
|
|
|
|
- name: Check Out Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Login to registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
registry: quay.io
|
|
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: docker/Dockerfile
|
2023-10-14 13:14:15 +00:00
|
|
|
platforms: linux/amd64,linux/arm64/v8
|
2022-09-04 12:35:28 +00:00
|
|
|
labels: quay.expires-after=24w
|
|
|
|
push: true
|
|
|
|
tags: quay.io/pussthecatorg/breezewiki:latest
|
|
|
|
build-args: release=1
|