From 12fbeac4ab216841d2190ba228c74688873f2bd5 Mon Sep 17 00:00:00 2001 From: Alexandre Henrique Afonso Campos Date: Sun, 21 Jul 2024 23:44:38 -0300 Subject: [PATCH] Fix deploy action (#114) * Remove old docker support in dockerhub * Do not run tests after merging, only before --- .github/workflows/backdeploy.yaml | 9 --------- .github/workflows/backtest.yaml | 6 ------ 2 files changed, 15 deletions(-) diff --git a/.github/workflows/backdeploy.yaml b/.github/workflows/backdeploy.yaml index 155eb5c..b986b1a 100644 --- a/.github/workflows/backdeploy.yaml +++ b/.github/workflows/backdeploy.yaml @@ -37,15 +37,6 @@ jobs: sed -i "s|version: 1.0.0|version: ${GIT_HASH}|g" server/src/main/resources/application.yaml - name: Build jar run: ./server/gradlew build -p server -x test - - name: Restore application.yaml - run: git checkout server/src/main/resources/application.yaml - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.DOCKER_HUB_USERNAME }} - password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 - name: Build and push to ECR run: | cd server diff --git a/.github/workflows/backtest.yaml b/.github/workflows/backtest.yaml index a82f078..5b2ad0b 100644 --- a/.github/workflows/backtest.yaml +++ b/.github/workflows/backtest.yaml @@ -1,12 +1,6 @@ name: Backend on: - push: - branches: - - main - paths: - - "server/**" - - ".github/workflows/backtest.yaml" pull_request: branches: - main