Skip to content

Commit

Permalink
Update Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-btnr committed Dec 25, 2024
1 parent a923e6c commit 2f48ce0
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 23 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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 != '[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
24 changes: 1 addition & 23 deletions .github/workflows/action.yml → .github/workflows/badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,26 +60,4 @@ jobs:
git config --local user.name "GitHub Actions"
git add .
git commit -m "Updated Badges" || exit 0
git push
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
git push

0 comments on commit 2f48ce0

Please sign in to comment.