From c17871af2be7f152794622c32689b5294431047b Mon Sep 17 00:00:00 2001 From: Pranay Valson Date: Tue, 11 Jun 2024 15:38:01 -0700 Subject: [PATCH] update dependabot config for docker image Signed-off-by: Pranay Valson --- .github/dependabot.yml | 3 ++- .github/workflows/docker-image.yml | 40 ++++++++++++++++-------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 038fe9a28..1944d7d66 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,11 +12,12 @@ updates: target-branch: "develop" reviewers: - "noslav" - - "rogarica" + - "rogarcia" - package-ecosystem: "docker" directory: "/" schedule: interval: "weekly" + target-branch: "develop" reviewers: - "noslav" - "rogarcia" diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index dc9405505..c0f5ed78e 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,30 +3,34 @@ name: docker-image-ci on: push: branches: - - "main" + - "main" pull_request: - branches: - - "main" - - "develop" + branches: + - "main" + - "develop" jobs: push-image: runs-on: ubuntu-latest steps: - - name: Login to GitHub Container Registry - if: ${{ !env.ACT }} - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ secrets.CR_USER }} - password: ${{ secrets.CR_PAT }} + - name: Cancel Previous Runs + uses: styfle/cancel-workflow-action@0.6.0 + with: + access_token: ${{ secrets.GITHUB_TOKEN }} + - name: Login to GitHub Container Registry + if: ${{ !env.ACT }} + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ secrets.CR_USER }} + password: ${{ secrets.CR_PAT }} - - uses: actions/checkout@v2 - - name: Build & Publish the Docker image - if: ${{ !env.ACT }} - run: | - docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest - docker push ghcr.io/covalenthq/bsp-geth:latest + - uses: actions/checkout@v2 + - name: Build & Publish the Docker image + if: ${{ !env.ACT }} + run: | + docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest + docker push ghcr.io/covalenthq/bsp-geth:latest # - name: Start containers # run: docker-compose -f "docker-compose.yml" up --build --remove-orphans --force-recreate --exit-code-from agent @@ -39,4 +43,4 @@ jobs: # - name: Stop containers # if: always() - # run: docker-compose -f "docker-compose.yml" down \ No newline at end of file + # run: docker-compose -f "docker-compose.yml" down