All checks were successful
Docker Build / build-and-push-image (push) Successful in 1m8s
42 lines
1019 B
YAML
42 lines
1019 B
YAML
---
|
|
name: Docker Build
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
paths-ignore:
|
|
- 'README.md'
|
|
- 'chart/**'
|
|
- '.gitignore'
|
|
- 'Makefile'
|
|
- 'bots.example.yaml'
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-${{ github.workflow }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-push-image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Login to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.arcodange.lab
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.PACKAGES_TOKEN }}
|
|
|
|
- name: git checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build and push image to Gitea Container Registry
|
|
run: |-
|
|
TAGS="latest ${{ github.ref_name }}"
|
|
docker build -t app .
|
|
for TAG in $TAGS; do
|
|
docker tag app gitea.arcodange.lab/${{ github.repository }}:$TAG
|
|
docker push gitea.arcodange.lab/${{ github.repository }}:$TAG
|
|
done
|