ansible-deployment-container/.gitea/workflows/build.yaml
Simon Cornet 459794975f
All checks were successful
Build and Publish / Build (push) Successful in 26s
[ci] style: prettify job name
2024-07-04 16:05:56 +02:00

38 lines
857 B
YAML

---
# generic
name: 'Build and Publish'
on:
push:
branches:
- 'master'
# build job
jobs:
Build:
runs-on: 'ubuntu-latest'
steps:
# checkout code
- name: 'Clone repo'
uses: 'actions/checkout@v4'
# login to cr.simoncor.net
- name: 'Login to cr.simoncor.net'
uses: 'docker/login-action@v3'
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'
with:
context: '.'
file: 'Dockerfile.linux.amd64'
push: true
tags: |
cr.simoncor.net/siempie/ansible-deployment:latest
cr.simoncor.net/siempie/ansible-deployment:v30