devops-test-app/.github/workflows/build-docker-image.yaml
DaemonGloom 57c125d3dd
All checks were successful
Docker image build / Build docker image (push) Successful in 1m25s
Switch helm, container registry and workflow to local repo
2024-08-06 09:03:12 +05:00

40 lines
860 B
YAML

name: Docker image build
on:
push:
branches: [master]
paths:
- app/**
- .github/**
pull_request:
paths:
- app/**
- .github/**
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
- name: Login to Gitea
if: github.event_name == 'push'
uses: docker/login-action@v3
with:
registry: daemongit.dyndns.info
username: just_a_test
password: ${{ secrets.GIT_REGISTRY_PASSWORD }}
- name: Publish test-app
run: make publish
if: github.event_name == 'push'
working-directory: app