Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zleyyij committed Nov 5, 2023
1 parent 1c22795 commit e4ee7f1
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,17 @@ jobs:
- name: Cache dependancies
uses: Swatinem/rust-cache@v2

- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Run build script
run: sh ./build.sh

- name: Build docker image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/hwgv .

- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME}}/hwgv:latest
- name: ush docker image
run: docker push arcinc/hwgv

0 comments on commit e4ee7f1

Please sign in to comment.