ci: update Gitea Actions workflow with docker/build-push-action
This commit is contained in:
parent
750ffee50b
commit
e88a9b9e10
1 changed files with 14 additions and 7 deletions
|
|
@ -13,15 +13,22 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build and push with Kaniko
|
||||
uses: aicoe-aioc/kaniko-action@v1
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ secrets.REGISTRY_HOSTPORT }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
repo: nxtgauge-ai-assistant
|
||||
tags: |
|
||||
${{ github.sha }}
|
||||
${{ github.ref_name }}-latest
|
||||
dockerfile: Dockerfile
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.REGISTRY_HOSTPORT }}/nxtgauge-ai-assistant:${{ gitea.sha }}
|
||||
${{ secrets.REGISTRY_HOSTPORT }}/nxtgauge-ai-assistant:${{ gitea.ref }}-latest
|
||||
dockerfile: Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue