From e4ee7f10ac1f0551ea667b41be920460e244718d Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Sun, 5 Nov 2023 16:03:16 -0700 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5746457..251d2fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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