ansible-deployment-container/.gitea/workflows/build.yaml

38 lines
857 B
YAML
Raw Normal View History

2024-07-02 14:24:07 +02:00
---
# generic
name: 'Build and Publish'
2024-07-02 14:24:07 +02:00
on:
push:
branches:
- 'master'
# build job
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
# checkout code
- name: 'Clone repo'
2024-07-02 14:24:07 +02:00
uses: 'actions/checkout@v2'
# login to cr.simoncor.net
- name: 'Login to cr.simoncor.net'
2024-07-02 14:24:07 +02:00
uses: 'docker/login-action@v2'
with:
registry: 'cr.simoncor.net'
username: ${{ vars.REGISTER_USERNAME }}
password: ${{ vars.REGISTER_PASSWORD }}
# build and publish container
- name: 'Build and Publish'
uses: 'docker/build-push-action@v6'
2024-07-02 14:24:07 +02:00
with:
context: '.'
file: 'Dockerfile.linux.amd64'
push: true
tags: |
cr.simoncor.net/siempie/ansible-deployment:latest
cr.simoncor.net/siempie/ansible-deployment:v30