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