-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update dependabot config for docker image
Signed-off-by: Pranay Valson <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 | ||
# run: docker-compose -f "docker-compose.yml" down |