use forgejo actions (#2)
All checks were successful
Publish latest version / build (push) Successful in 25s

This commit is contained in:
Mylloon 2024-08-11 16:39:03 +02:00
parent e33c9ac930
commit 3a5a97e4dd
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
3 changed files with 37 additions and 16 deletions

View file

@ -1,15 +0,0 @@
steps:
publish:
image: woodpeckerci/plugin-docker-buildx:2
settings:
labels:
platform: linux/amd64
repo: git.mylloon.fr/${CI_REPO,,}
auto_tag: true
registry: git.mylloon.fr
username: ${CI_REPO_OWNER}
password:
from_secret: cb_token
when:
event: push
branch: main

View file

@ -0,0 +1,36 @@
name: Publish latest version
on:
push:
branches: [main]
jobs:
build:
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Sanitize metadata
id: meta
uses: docker/metadata-action@v5
with:
tags: latest
images: git.mylloon.fr/${{ github.repository }}
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: ${{ github.server_url }}
username: ${{ github.actor }}
password: ${{ secrets.TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}

View file

@ -1,6 +1,6 @@
# Tom, a twitch bot # Tom, a twitch bot
[![status-badge](https://ci.mylloon.fr/api/badges/72/status.svg)](https://ci.mylloon.fr/repos/72) ![status-badge](https://git.mylloon.fr/ConfrerieDuKassoulait/Tom/badges/workflows/publish.yml/badge.svg)
## Features ## Features