This commit is contained in:
parent
b7cf5a5084
commit
6cb4908813
1 changed files with 34 additions and 0 deletions
34
.forgejo/workflows/build-and-publish.yaml
Normal file
34
.forgejo/workflows/build-and-publish.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
name: Build and publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push-arch:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
|
options: -v /dind/docker.sock:/var/run/docker.sock
|
||||||
|
steps:
|
||||||
|
- name: Checkout the repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to the registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: guardianproject.dev
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: src/
|
||||||
|
file: src/Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: guardianproject.dev/${{ github.repository }}:latest
|
Loading…
Add table
Add a link
Reference in a new issue