diff --git a/.gitea/workflows/cargo-test.yml b/.gitea/workflows/cargo-test.yml index 3b9e13d..1e9eab2 100644 --- a/.gitea/workflows/cargo-test.yml +++ b/.gitea/workflows/cargo-test.yml @@ -2,7 +2,7 @@ name: Test the running changes on: push: - branches: [ "master" ] + branches: [ "dev" ] pull_request: branches: [ "master" ] diff --git a/.gitea/workflows/deploy.yml.notready b/.gitea/workflows/deploy.yml.notready new file mode 100644 index 0000000..646ed61 --- /dev/null +++ b/.gitea/workflows/deploy.yml.notready @@ -0,0 +1,32 @@ +name: Build and deploy Docker image + +on: + push: + branches: + - master + +env: + CARGO_TERM_COLOR: always + +jobs: + deploy: + name: Deploy + runs-on: rust-latest + + steps: + - run: apt-get update -y && apt-get install nodejs -y + - uses: actions/checkout@v4 + - run: cargo build --release + - uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."gitea-http.apps.svc.cluster.local:3000"] + http = true + insecure = true + - uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile + push: true + tags: "gitea-http.apps.svc.cluster.local:3000"..... +