diff --git a/.gitea/gitea-ci.yaml b/.gitea/gitea-ci.yaml new file mode 100644 index 0000000..fa46dd1 --- /dev/null +++ b/.gitea/gitea-ci.yaml @@ -0,0 +1,37 @@ +name: Build And Test +run-name: ${{ gitea.actor }} is runs ci pipeline +on: + push: + branches: + - main + +jobs: + ci-flow: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Test CI action command + run: ls -la + - name: Test CI action command 1 + run: pwd + - name: Test CI action command 2 + run: whoami + - name: Test CI action command 3 + run: cat /etc/os-release + + cd-flow: + runs-on: alpine-latest + needs: build + if: gitea.ref == 'refs/heads/main' + steps: + - name: Check out repository code + uses: actions/checkout@v4 + - name: Test CD action command + run: ls -la + - name: Test CD action command 1 + run: pwd + - name: Test CD action command 2 + run: whoami + - name: Test CD action command 3 + run: cat /etc/os-release \ No newline at end of file