2024-11-26 10:01:05 -06:00
|
|
|
Name: Container Build Push
|
|
|
|
run-name: ${{ gitea.actor }}
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [closed]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Plan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: List Contents
|
|
|
|
id: ls
|
|
|
|
run: ls -al
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
run: |
|
|
|
|
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
|
|
|
docker build -t git.hamik.net/paradizelost/librarynotices:latest .
|
|
|
|
docker push git.hamik.net/paradizelost/librarynotices
|
|
|
|
Deploy:
|
|
|
|
needs: [Plan] #
|
2024-11-26 10:14:43 -06:00
|
|
|
runs-on: enphasecollector
|
2024-11-26 10:01:05 -06:00
|
|
|
defaults:
|
|
|
|
run:
|
2024-11-26 10:26:55 -06:00
|
|
|
working-directory: /docker/enphase
|
2024-11-26 10:01:05 -06:00
|
|
|
steps:
|
|
|
|
- name: Destroy Container
|
|
|
|
id: down
|
|
|
|
run: docker compose down
|
|
|
|
|
|
|
|
- name: Pull Updates
|
|
|
|
id: pull
|
|
|
|
run: docker compose pull
|
|
|
|
|
|
|
|
- name: Start Containers
|
|
|
|
id: start
|
|
|
|
run: docker compose up -d
|