Use lightweight container images for CI/CD
This commit is contained in:
parent
b3682b1936
commit
8d8a23b65e
2 changed files with 24 additions and 5 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# =============================================================================
|
||||
# Triggers after successful build on main/master branch
|
||||
# SSHs to production server and updates containers
|
||||
# Uses alpine:3.19 (~7MB) instead of catthehacker/ubuntu (~1.5GB)
|
||||
# =============================================================================
|
||||
|
||||
name: Deploy to Production
|
||||
|
|
@ -23,10 +24,15 @@ jobs:
|
|||
# Only deploy if build succeeded OR manual trigger
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: alpine:3.19
|
||||
|
||||
steps:
|
||||
- name: Install dependencies
|
||||
run: apk add --no-cache openssh-client curl git
|
||||
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
|
||||
- name: Setup SSH key
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue