Remove automatic deploy
Some checks failed
Build Crate / build (push) Failing after 1m26s

Too annoying to host now
This commit is contained in:
2024-08-18 15:34:42 -04:00
parent 528682d9b1
commit 8ad6967b7a

View File

@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out repository code - name: Check out repository code
# TODO -> Change to actions/checkout@v3 once this is resolved https://github.com/actions/checkout/issues/1370 # TODO -> Change to actions/checkout@v3 once this is resolved https://github.com/actions/checkout/issues/1370
uses: https://gitea.com/ScMi1/checkout@v1 uses: https://gitea.com/ScMi1/checkout@v1
- name: Get rust - name: Get rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
@@ -25,7 +25,7 @@ jobs:
- name: Add wasm32 to cargo - name: Add wasm32 to cargo
run: rustup target add wasm32-unknown-unknown run: rustup target add wasm32-unknown-unknown
- name: Cache rust - name: Cache rust
uses: Swatinem/rust-cache@v2 uses: Swatinem/rust-cache@v2
with: with:
cache-on-failure: "true" cache-on-failure: "true"
- name: Install perseus - name: Install perseus
@@ -44,55 +44,3 @@ jobs:
run: npm run build run: npm run build
- name: Build the project - name: Build the project
run: perseus deploy run: perseus deploy
- name: Download private docker registry cert
uses: nicklasfrahm/scp-action@v1.0.1
with:
direction: download
host: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.REGISTRY_HOST_USERNAME }}
insecure_password: ${{ secrets.REGISTRY_HOST_PASSWORD }}
source: ${{ secrets.REGISTRY_CRT_PATH }}
target: ca.crt
insecure_ignore_fingerprint: true
- name: Add directory for docker registry cert
run: 'mkdir -p /etc/docker/certs.d/${{ secrets.REGISTRY_HOST }}'
- name: Move private docker registry cert
run: 'mv ca.crt /etc/docker/certs.d/${{ secrets.REGISTRY_HOST }}'
- name: Install docker
uses: papodaca/install-docker-action@main
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry."${{ secrets.REGISTRY_HOST }}"]
insecure = true
ca=["/etc/docker/certs.d/${{ secrets.REGISTRY_HOST }}/ca.crt"]
- name: Login to private docker registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.REGISTRY_HOST }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ secrets.REGISTRY_HOST }}/vsquad/pool-elo:${{ gitea.ref_name }}
- name: Trigger deployment
uses: fjogeleit/http-request-action@v1
with:
url: ${{ secrets.TRIGGER_DEPLOY_URL }}
method: POST
customHeaders: '{"Content-Type": "application/json"}'
data: '{"actionName": "deploy", "arguments": []}'
preventFailureOnNoResponse: 'true'