initial commit

This commit is contained in:
2024-11-26 10:01:05 -06:00
commit 249c97ce8e
7 changed files with 359 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
Name: Commit Checks
run-name: ${{ gitea.actor }}
on:
push:
branches:
- "**"
- "!main"
jobs:
Plan:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
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/enphase:dev .
docker push git.hamik.net/paradizelost/enphse:dev

View File

@@ -0,0 +1,42 @@
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] #
runs-on: librarynoticehost
defaults:
run:
working-directory: /docker/librarynotices
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