From 4baa37cc6cd2e4773c2242abe9e239f0136ac3b1 Mon Sep 17 00:00:00 2001 From: Evan Richardson Date: Wed, 6 Mar 2024 07:54:30 +0000 Subject: [PATCH] use build and push action --- .gitea/workflows/publish.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml index 29eeccd..1fb69d4 100644 --- a/.gitea/workflows/publish.yaml +++ b/.gitea/workflows/publish.yaml @@ -16,9 +16,6 @@ jobs: - name: Checkout repository uses: actions/checkout@v4.1.1 - - name: Build Docker image - run: docker build -t harbor.evanshome.io/library/py-eagle-mqtt:dev ./Docker/ - - name: Login to Harbor uses: docker/login-action@v3 with: @@ -26,6 +23,10 @@ jobs: username: ${{ secrets.HARBOR_USERNAME }} password: ${{ secrets.HARBOR_PASSWORD }} - - name: Push Docker image to Harbor - run: docker push harbor.evanshome.io/library/py-eagle-mqtt:dev + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: ./Docker/ + push: true + tags: harbor.evanshome.io/library/py-eagle-mqtt:dev \ No newline at end of file