2024-07-15 18:28:47 +05:00
|
|
|
name: Docker image build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
paths:
|
|
|
|
- app/**
|
2024-08-06 08:35:25 +05:00
|
|
|
- .github/**
|
2024-07-15 18:28:47 +05:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- app/**
|
2024-08-06 08:35:25 +05:00
|
|
|
- .github/**
|
2024-07-15 18:28:47 +05:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-images:
|
|
|
|
name: Build docker image
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
|
|
|
|
- name: Build test-app
|
|
|
|
run: make build
|
|
|
|
working-directory: app
|
|
|
|
|
2024-08-05 16:09:04 +05:00
|
|
|
- name: Login to Gitea
|
2024-07-15 18:28:47 +05:00
|
|
|
if: github.event_name == 'push'
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
2024-08-05 16:09:04 +05:00
|
|
|
registry: daemongit.dyndns.info
|
2024-08-06 09:00:39 +05:00
|
|
|
username: just_a_test
|
2024-08-05 16:09:04 +05:00
|
|
|
password: ${{ secrets.GIT_REGISTRY_PASSWORD }}
|
2024-07-15 18:28:47 +05:00
|
|
|
|
|
|
|
- name: Publish test-app
|
|
|
|
run: make publish
|
|
|
|
if: github.event_name == 'push'
|
|
|
|
working-directory: app
|