mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 18:06:43 +02:00
Add Docker CI
This commit is contained in:
parent
2074e36aa4
commit
c093401c53
1 changed files with 33 additions and 0 deletions
33
.github/workflows/docker.yml
vendored
Normal file
33
.github/workflows/docker.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: Docker
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Required to make some things output color
|
||||||
|
TERM: ansi
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: docker
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Login to GHCR
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
tags: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:next
|
Loading…
Add table
Reference in a new issue