diff --git a/.gitea/workflows/updateimage.yml b/.gitea/workflows/updateimage.yml new file mode 100644 index 0000000..676a33d --- /dev/null +++ b/.gitea/workflows/updateimage.yml @@ -0,0 +1,34 @@ +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 + + - 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" + + - name: Install Docker + run: curl -fsSL https://get.docker.com | sh + + - name: Deploy + run: | + echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login -u paradizelost --password-stdin + docker build -t paradizelost/visubnet:latest . + docker push paradizelost/visubnet \ No newline at end of file