devops-test-app/.github/workflows/build-docker-image.yaml

38 lines
821 B
YAML

name: Docker image build
on:
push:
branches: [master]
paths:
- app/**
pull_request:
paths:
- app/**
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 Quay
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