Add .forgejo/workflows/build.yml
This commit is contained in:
commit
e1482cb024
1 changed files with 38 additions and 0 deletions
38
.forgejo/workflows/build.yml
Normal file
38
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,38 @@
|
|||
name: Build And Publish Docker
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "master"
|
||||
|
||||
jobs:
|
||||
|
||||
build-latest:
|
||||
runs-on: debian-node
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install deps
|
||||
run: curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.sh
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@master
|
||||
|
||||
- name: Login to Self-Hosted Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.myco.systems
|
||||
username: ${{ secrets.MYCO_REGISTRY_USER }}
|
||||
password: ${{ secrets.MYCO_PERSONAL_ACCESS_TOKEN }}
|
||||
|
||||
- name: Build and Push Extended Version
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
builder: ${{ steps.buildx.outputs.name }}
|
||||
context: ./
|
||||
file: ./Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
git.myco.systems/mycosystems/web-ci:latest
|
Loading…
Add table
Reference in a new issue