[ci] feat: decomissioned drone and prettified gitea workflow
All checks were successful
Build and Publish / build (push) Successful in 38s

This commit is contained in:
Simon Cornet 2024-07-02 14:34:49 +02:00
parent d4ea448fc6
commit 2b93b9c060
2 changed files with 5 additions and 44 deletions

View File

@ -1,39 +0,0 @@
---
kind: 'pipeline'
name: 'build'
type: 'kubernetes'
steps:
# build and publish
- image: 'plugins/docker'
name: 'publish'
pull: 'always'
when:
branch:
- 'master'
event:
- 'push'
settings:
# registery and repos
registry: 'cr.simoncor.net'
cache_from: 'siempie/ansible-deployment'
repo: 'cr.simoncor.net/siempie/ansible-deployment'
mtu: '1440'
# build stuff
dockerfile: 'Dockerfile.linux.amd64'
daemon_off: 'false'
# authentication
username:
from_secret: 'docker_username'
password:
from_secret: 'docker_password'
# tags
tags:
- 'latest'
- 'v30'

View File

@ -1,7 +1,7 @@
--- ---
# generic # generic
name: 'build' name: 'Build and Publish'
on: on:
push: push:
branches: branches:
@ -14,19 +14,19 @@ jobs:
steps: steps:
# checkout code # checkout code
- name: 'clone repo' - name: 'Clone repo'
uses: 'actions/checkout@v2' uses: 'actions/checkout@v2'
# login to cr.simoncor.net # login to cr.simoncor.net
- name: 'login to cr.simoncor.net' - name: 'Login to cr.simoncor.net'
uses: 'docker/login-action@v2' uses: 'docker/login-action@v2'
with: with:
registry: 'cr.simoncor.net' registry: 'cr.simoncor.net'
username: ${{ vars.REGISTER_USERNAME }} username: ${{ vars.REGISTER_USERNAME }}
password: ${{ vars.REGISTER_PASSWORD }} password: ${{ vars.REGISTER_PASSWORD }}
# build container # build and publish container
- name: 'build container' - name: 'Build and Publish'
uses: 'docker/build-push-action@v3' uses: 'docker/build-push-action@v3'
with: with:
context: '.' context: '.'