33 lines
734 B
YAML
33 lines
734 B
YAML
name: test
|
|
on:
|
|
push:
|
|
branches:
|
|
- release
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: test
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: https://git.bellacocool.com/actions/checkout@v4
|
|
- name: Docker Build and Push
|
|
run: |
|
|
docker build -t git.bellacocool.com/jsy/epr:latest .
|
|
continue-on-error: true
|
|
|
|
deploy:
|
|
runs-on: test
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to Test
|
|
run: cd /opt/docker && docker compose -f docker-compose.yaml -f epr/docker-compose.yaml up -d
|
|
|
|
release:
|
|
runs-on: test
|
|
needs: build
|
|
steps:
|
|
- name: Release Package
|
|
run: |
|
|
docker run --rm -e GITHUB_RUN_NUMBER=$GITHUB_RUN_NUMBER git.bellacocool.com/jsy/epr sh release.sh
|
|
|