From 8ad6967b7afb215602fd8177749c7761beb8a630 Mon Sep 17 00:00:00 2001 From: Matthew Kaminski Date: Sun, 18 Aug 2024 15:34:42 -0400 Subject: [PATCH] Remove automatic deploy Too annoying to host now --- .github/workflows/github-actions-demo.yml | 56 +---------------------- 1 file changed, 2 insertions(+), 54 deletions(-) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index 7a13c11..f6cf1cb 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.github/workflows/github-actions-demo.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - 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 - name: Get rust uses: actions-rs/toolchain@v1 @@ -25,7 +25,7 @@ jobs: - name: Add wasm32 to cargo run: rustup target add wasm32-unknown-unknown - name: Cache rust - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@v2 with: cache-on-failure: "true" - name: Install perseus @@ -44,55 +44,3 @@ jobs: run: npm run build - name: Build the project 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'