[ci] feat: decomissioned drone and prettified gitea workflow
All checks were successful
Build and Publish / build (push) Successful in 38s
All checks were successful
Build and Publish / build (push) Successful in 38s
This commit is contained in:
parent
d4ea448fc6
commit
2b93b9c060
39
.drone.yaml
39
.drone.yaml
@ -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'
|
@ -1,7 +1,7 @@
|
||||
---
|
||||
|
||||
# generic
|
||||
name: 'build'
|
||||
name: 'Build and Publish'
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
@ -14,19 +14,19 @@ jobs:
|
||||
steps:
|
||||
|
||||
# checkout code
|
||||
- name: 'clone repo'
|
||||
- name: 'Clone repo'
|
||||
uses: 'actions/checkout@v2'
|
||||
|
||||
# login to cr.simoncor.net
|
||||
- name: 'login to cr.simoncor.net'
|
||||
- name: 'Login to cr.simoncor.net'
|
||||
uses: 'docker/login-action@v2'
|
||||
with:
|
||||
registry: 'cr.simoncor.net'
|
||||
username: ${{ vars.REGISTER_USERNAME }}
|
||||
password: ${{ vars.REGISTER_PASSWORD }}
|
||||
|
||||
# build container
|
||||
- name: 'build container'
|
||||
# build and publish container
|
||||
- name: 'Build and Publish'
|
||||
uses: 'docker/build-push-action@v3'
|
||||
with:
|
||||
context: '.'
|
||||
|
Loading…
Reference in New Issue
Block a user