[ci] feat: added gitea actions config
This commit is contained in:
parent
38174a52ba
commit
d4ea448fc6
37
.gitea/workflows/build.yaml
Normal file
37
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
# generic
|
||||||
|
name: 'build'
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
|
# build job
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: 'ubuntu-latest'
|
||||||
|
steps:
|
||||||
|
|
||||||
|
# checkout code
|
||||||
|
- name: 'clone repo'
|
||||||
|
uses: 'actions/checkout@v2'
|
||||||
|
|
||||||
|
# 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'
|
||||||
|
uses: 'docker/build-push-action@v3'
|
||||||
|
with:
|
||||||
|
context: '.'
|
||||||
|
file: 'Dockerfile.linux.amd64'
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
cr.simoncor.net/siempie/ansible-deployment:latest
|
||||||
|
cr.simoncor.net/siempie/ansible-deployment:v30
|
Loading…
Reference in New Issue
Block a user