diff --git a/.gitea/workflows/check-build.yml b/.gitea/workflows/check-build.yml new file mode 100644 index 0000000..e849d52 --- /dev/null +++ b/.gitea/workflows/check-build.yml @@ -0,0 +1,28 @@ +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: Deploy + run: | + echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin + docker build -t git.hamik.net/paradizelost/proftpd: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..d70e519 --- /dev/null +++ b/.gitea/workflows/push-build.yml @@ -0,0 +1,24 @@ +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/proftpd:latest . + docker push git.hamik.net/paradizelost/proftpd \ No newline at end of file