use build and push action
Some checks failed
Build and publish Image / build-and-push (push) Failing after 25s
Some checks failed
Build and publish Image / build-and-push (push) Failing after 25s
This commit is contained in:
@@ -16,9 +16,6 @@ jobs:
|
|||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4.1.1
|
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
|
- name: Login to Harbor
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
@@ -26,6 +23,10 @@ jobs:
|
|||||||
username: ${{ secrets.HARBOR_USERNAME }}
|
username: ${{ secrets.HARBOR_USERNAME }}
|
||||||
password: ${{ secrets.HARBOR_PASSWORD }}
|
password: ${{ secrets.HARBOR_PASSWORD }}
|
||||||
|
|
||||||
- name: Push Docker image to Harbor
|
- name: Build and push
|
||||||
run: docker push harbor.evanshome.io/library/py-eagle-mqtt:dev
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: ./Docker/
|
||||||
|
push: true
|
||||||
|
tags: harbor.evanshome.io/library/py-eagle-mqtt:dev
|
||||||
|
|
||||||
Reference in New Issue
Block a user