Skip to content

Commit 3c44af8

Browse files
authored
Update build_and_push.yml
1 parent 715902a commit 3c44af8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build_and_push.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ on:
44
push:
55
branches: [ "main" ]
66
tags: [ 'v*.*.*' ]
7-
pull_request:
8-
branches: [ "main" ]
7+
# pull_request:
8+
# branches: [ "main" ]
99

1010
jobs:
1111
build:
@@ -19,12 +19,14 @@ jobs:
1919
run: |
2020
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
2121
- name: Build specify tag
22-
run: docker build -t hexydev/spacebox-crawler:${{github.ref_name}} --target=app .
22+
run: |
23+
echo 'build image: to bronbro/spacebox-crawler:${{github.ref_name}}'
24+
docker build -t bronbro/spacebox-crawler:${{github.ref_name}} --target=app .
2325
- name: Build latest tag
2426
if: startsWith(github.ref, 'refs/tags/v')
25-
run: docker build -t hexydev/spacebox-crawler:latest --target=app .
27+
run: docker build -t bronbro/spacebox-crawler:latest --target=app .
2628
- name: push specify tag to registry
27-
run: docker push hexydev/spacebox-crawler:${{github.ref_name}}
29+
run: docker push bronbro/spacebox-crawler:${{github.ref_name}}
2830
- name: push latest tag to registry
2931
if: startsWith(github.ref, 'refs/tags/v')
30-
run: docker push hexydev/spacebox-crawler:latest
32+
run: docker push bronbro/spacebox-crawler:latest

0 commit comments

Comments
 (0)