Skip to content

Commit 079c353

Browse files
authored
Update build_and_push.yml
1 parent 90dfd48 commit 079c353

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/build_and_push.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
branches: [ "main" ]
99

1010
jobs:
11-
1211
build:
1312
runs-on: ubuntu-latest
1413
steps:
@@ -21,8 +20,8 @@ jobs:
2120
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
2221
- name: Build the Docker image
2322
run: |
24-
docker build --tag hexydev/spacebox-crawler:${{github.ref_name}} --target=app .
23+
docker build -t hexydev/spacebox-crawler:latest -t hexydev/spacebox-crawler:${{github.ref_name}} --target=app .
2524
- name: push to registry
2625
run: |
27-
docker ps
28-
// docker push ${{secrets.DOCKERHUB_REPO}}
26+
docker push hexydev/spacebox-crawler:${{github.ref_name}}
27+
docker push hexydev/spacebox-crawler:latest

0 commit comments

Comments
 (0)