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
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build and push with Kaniko
|
- name: Set up Docker Buildx
|
||||||
uses: aicoe-aioc/kaniko-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ secrets.REGISTRY_HOSTPORT }}
|
registry: ${{ secrets.REGISTRY_HOSTPORT }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
repo: nxtgauge-ai-assistant
|
|
||||||
tags: |
|
- name: Build and push
|
||||||
${{ github.sha }}
|
uses: docker/build-push-action@v5
|
||||||
${{ github.ref_name }}-latest
|
with:
|
||||||
dockerfile: Dockerfile
|
|
||||||
context: .
|
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