Skip to content

Update Workflow

Update Workflow #1

Workflow file for this run

name: Update API
on:
push:
branches:
- main
jobs:
update-api:
name: Update API
runs-on: self-hosted
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Build Docker Container
if: ${{ github.event.head_commit.author.email != '[email protected]' }}
run: docker compose build
- name: Restart Docker Container
run: |
docker compose down
docker compose up -d
- name: Clean Up Docker Images and Build Cache
if: ${{ github.event.head_commit.author.email != '[email protected]' }}
run: |
docker image prune -f
docker builder prune -f