@@ -3,30 +3,34 @@ name: docker-image-ci
33on :
44 push :
55 branches :
6- - " main"
6+ - " main"
77 pull_request :
8- branches :
9- - " main"
10- - " develop"
8+ branches :
9+ - " main"
10+ - " develop"
1111
1212jobs :
1313 push-image :
1414 runs-on : ubuntu-latest
1515 steps :
16- - name : Login to GitHub Container Registry
17- if : ${{ !env.ACT }}
18- uses : docker/login-action@v1
19- with :
20- registry : ghcr.io
21- username : ${{ secrets.CR_USER }}
22- password : ${{ secrets.CR_PAT }}
16+ - name : Cancel Previous Runs
17+ 18+ with :
19+ access_token : ${{ secrets.GITHUB_TOKEN }}
20+ - name : Login to GitHub Container Registry
21+ if : ${{ !env.ACT }}
22+ uses : docker/login-action@v1
23+ with :
24+ registry : ghcr.io
25+ username : ${{ secrets.CR_USER }}
26+ password : ${{ secrets.CR_PAT }}
2327
24- - uses : actions/checkout@v2
25- - name : Build & Publish the Docker image
26- if : ${{ !env.ACT }}
27- run : |
28- docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest
29- docker push ghcr.io/covalenthq/bsp-geth:latest
28+ - uses : actions/checkout@v2
29+ - name : Build & Publish the Docker image
30+ if : ${{ !env.ACT }}
31+ run : |
32+ docker build . --file Dockerfile --tag ghcr.io/covalenthq/bsp-geth:latest
33+ docker push ghcr.io/covalenthq/bsp-geth:latest
3034
3135 # - name: Start containers
3236 # run: docker-compose -f "docker-compose.yml" up --build --remove-orphans --force-recreate --exit-code-from agent
3943
4044 # - name: Stop containers
4145 # if: always()
42- # run: docker-compose -f "docker-compose.yml" down
46+ # run: docker-compose -f "docker-compose.yml" down
0 commit comments