mirror of
https://github.com/WhoIsFishie/Fishie-Honesty-UI.git
synced 2025-05-18 15:35:41 +00:00
25 lines
671 B
YAML
25 lines
671 B
YAML
name: Build and Push Docker Compose on Commit
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Build Docker Compose
|
|
run: docker compose -f .build/docker-compose.yml build
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: git.shihaam.dev
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
- name: Push Docker Compose
|
|
run: docker compose -f .build/docker-compose.yml push
|