use build and push action
This commit is contained in:
@@ -16,12 +16,12 @@ 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
|
||||
run: docker login -u ${{ secrets.HARBOR_USERNAME }} -p ${{ secrets.HARBOR_PASSWORD }} harbor.evanshome.io
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user