Use forgejo actions (#140)
All checks were successful
Publish latest version / build (push) Successful in 1m35s
All checks were successful
Publish latest version / build (push) Successful in 1m35s
Closes #139 - Replace Woodpecker CI by Forgejo actions Reviewed-on: #140 Co-authored-by: Mylloon <kennel.anri@tutanota.com> Co-committed-by: Mylloon <kennel.anri@tutanota.com>
This commit is contained in:
parent
3e626b8b0e
commit
bfc11f7f91
2 changed files with 37 additions and 16 deletions
|
@ -1,15 +1,36 @@
|
||||||
|
name: Publish latest version
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
container:
|
||||||
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
publish:
|
- name: Checkout
|
||||||
image: woodpeckerci/plugin-docker-buildx:2
|
uses: actions/checkout@v4
|
||||||
settings:
|
|
||||||
labels:
|
- name: Set up Docker Buildx
|
||||||
platform: linux/amd64
|
uses: docker/setup-buildx-action@v3
|
||||||
repo: git.mylloon.fr/${CI_REPO,,}
|
|
||||||
auto_tag: true
|
- name: Sanitize metadata
|
||||||
registry: git.mylloon.fr
|
id: meta
|
||||||
username: ${CI_REPO_OWNER}
|
uses: docker/metadata-action@v5
|
||||||
password:
|
with:
|
||||||
from_secret: cb_token
|
tags: latest
|
||||||
when:
|
images: git.mylloon.fr/${{ github.repository }}
|
||||||
event: push
|
|
||||||
branch: main
|
- 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 }}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# 🌱 Botanique [![status-badge](https://ci.mylloon.fr/api/badges/ConfrerieDuKassoulait/Botanique/status.svg)](https://ci.mylloon.fr/ConfrerieDuKassoulait/Botanique)
|
# 🌱 Botanique ![status-badge](https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/badges/workflows/publish.yml/badge.svg)
|
||||||
|
|
||||||
[**Ajoute le bot à ton serveur**](https://discord.com/api/oauth2/authorize?client_id=965598852407230494&permissions=8&scope=bot%20applications.commands)
|
[**Ajoute le bot à ton serveur**](https://discord.com/api/oauth2/authorize?client_id=965598852407230494&permissions=8&scope=bot%20applications.commands)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue