Skip to content

Commit

Permalink
infra: merge deploy and build into one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ClayenKitten committed Jul 21, 2024
1 parent df22da0 commit 215035f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/build.yml

This file was deleted.

12 changes: 9 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
name: Deploy
name: Build and Deploy
permissions: write-all

on:
push:
branches: ["main"]
workflow_dispatch:
registry_package:

jobs:
build-and-push:
name: Build image
uses: ClayenApps/actions/.github/workflows/docker-ghcr.yml@main

deploy:
name: Deploy
name: Deploy to server
runs-on: ubuntu-latest
needs: build-and-push
steps:
- name: Deploy
uses: appleboy/[email protected]
Expand Down

0 comments on commit 215035f

Please sign in to comment.