This commit is contained in:
@@ -5,6 +5,12 @@ inputs:
|
|||||||
tag:
|
tag:
|
||||||
description: 'Docker image tag'
|
description: 'Docker image tag'
|
||||||
required: true
|
required: true
|
||||||
|
REGISTRY_ACCESS_TOKEN:
|
||||||
|
description: 'Registry token to authenticate'
|
||||||
|
required: true
|
||||||
|
REGISTRY_USER:
|
||||||
|
description: 'Registry user to authenticate'
|
||||||
|
required: true
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
image_url:
|
image_url:
|
||||||
@@ -21,8 +27,8 @@ runs:
|
|||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ vars.INSTANCE_URL }}
|
registry: ${{ vars.INSTANCE_URL }}
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ inputs.REGISTRY_USER }}
|
||||||
password: ${REGISTRY_ACCESS_TOKEN}
|
password: ${{ inputs.REGISTRY_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ jobs:
|
|||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: ./.gitea/actions/build
|
uses: ./.gitea/actions/build
|
||||||
env:
|
|
||||||
REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.branch_name.outputs.branch_name }}
|
tag: ${{ steps.branch_name.outputs.branch_name }}
|
||||||
|
REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
|
REGISTRY_USER: ${{ gitea.actor }}
|
||||||
|
|
||||||
- name: Deploy application
|
- name: Deploy application
|
||||||
uses: ./.gitea/actions/deploy
|
uses: ./.gitea/actions/deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user