diff --git a/.gitea/workflows/check-build.yml b/.gitea/workflows/check-build.yml new file mode 100644 index 0000000..275a3b8 --- /dev/null +++ b/.gitea/workflows/check-build.yml @@ -0,0 +1,31 @@ +Name: Container Build Check +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: Login to repo + id: login + run: echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin + + - name: Build + id: Build Verify + run: docker build -t git.hamik.net/paradizelost/visubnet:latest . \ No newline at end of file diff --git a/.gitea/workflows/push-build.yml b/.gitea/workflows/push-build.yml new file mode 100644 index 0000000..31d6c59 --- /dev/null +++ b/.gitea/workflows/push-build.yml @@ -0,0 +1,31 @@ +Name: Container Build Push +run-name: ${{ gitea.actor }} +on: + pull_request: + types: [closed] + +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: Login to repo + id: login + run: echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin + - name: Build + id: Build Verify + run: docker build -t git.hamik.net/paradizelost/visubnet:latest . + + - name: Push to Repository + id: push + run: docker push git.hamik.net/paradizelost/visubnet \ No newline at end of file diff --git a/.gitea/workflows/updateimage.yml b/.gitea/workflows/updateimage.yml deleted file mode 100644 index d52347a..0000000 --- a/.gitea/workflows/updateimage.yml +++ /dev/null @@ -1,34 +0,0 @@ -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 git.hamik.net -u paradizelost --password-stdin - docker build -t git.hamik.net/paradizelost/visubnet:latest . - docker push git.hamik.net/paradizelost/visubnet \ No newline at end of file