-
Notifications
You must be signed in to change notification settings - Fork 11
29 lines (24 loc) · 809 Bytes
/
api.yml
File metadata and controls
29 lines (24 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 != 'actions@github.com' }}
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 != 'actions@github.com' }}
run: |
docker image prune -f
docker builder prune -f