2024-11-25 08:30:16 -06:00
|
|
|
Name: Terraform Processing
|
|
|
|
run-name: ${{ gitea.actor }}
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "**"
|
|
|
|
# - "!master"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Plan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
working-directory: ./
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2024-11-25 08:31:04 -06:00
|
|
|
#
|
2024-11-25 08:30:16 -06:00
|
|
|
- name: List Contents
|
|
|
|
id: ls
|
|
|
|
run: ls -al
|
|
|
|
|
|
|
|
- name: Set git remote if not already set
|
|
|
|
run: git remote -v | grep -w gitea || git remote add gitea "./gitea/git/repositories/${GITHUB_REPOSITORY,,}.git"
|
|
|
|
|
2024-11-25 08:32:29 -06:00
|
|
|
#- name: Install Docker
|
|
|
|
# run: curl -fsSL https://get.docker.com | sh
|
2024-11-25 08:30:16 -06:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
run: |
|
|
|
|
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login -u paradizelost --password-stdin
|
|
|
|
docker build -t paradizelost/visubnet:latest .
|
|
|
|
docker push paradizelost/visubnet
|