This commit is contained in:
@@ -8,15 +8,6 @@ jobs:
|
|||||||
startsWith(gitea.event.comment.body, '/deploy')
|
startsWith(gitea.event.comment.body, '/deploy')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Debug context
|
|
||||||
run: |
|
|
||||||
echo "Event: ${{ github.event_name }}"
|
|
||||||
echo "Ref: ${{ github.ref }}"
|
|
||||||
echo "Ref name: ${{ github.ref_name }}"
|
|
||||||
echo "Head ref: ${{ github.head_ref }}"
|
|
||||||
echo "Is PR comment: ${{ !!github.event.issue.pull_request }}"
|
|
||||||
echo "PR number: ${{ github.event.issue.number }}"
|
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
@@ -24,21 +15,15 @@ jobs:
|
|||||||
id: branch_name
|
id: branch_name
|
||||||
uses: ./.gitea/actions/getTagSafeRef
|
uses: ./.gitea/actions/getTagSafeRef
|
||||||
|
|
||||||
- name: print sanitized name
|
- name: Build and push image
|
||||||
run: 'echo ${{ steps.branch_name.outputs.branch_name }}'
|
id: docker_build
|
||||||
|
uses: ./.gitea/actions/build
|
||||||
|
with:
|
||||||
|
tag: ${{ steps.branch_name.outputs.branch_name }}
|
||||||
|
|
||||||
# - name: Print result
|
- name: Deploy application
|
||||||
# run: echo "Branch name: ${{ steps.branch_name.outputs.branch_name }}"
|
uses: ./.gitea/actions/deploy
|
||||||
|
with:
|
||||||
# - name: Build and push image
|
project_name: ${{ steps.branch_name.outputs.branch_name }}
|
||||||
# id: docker_build
|
url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local'
|
||||||
# uses: ./.github/actions/buildDockerImage
|
image_url: ${{ steps.docker_build.outputs.image_url }}
|
||||||
# with:
|
|
||||||
# tag: ${{ steps.branch_name.outputs.branch_name }}
|
|
||||||
|
|
||||||
# - name: Deploy application
|
|
||||||
# uses: ./.github/actions/deploy
|
|
||||||
# with:
|
|
||||||
# project_name: ${{ steps.branch_name.outputs.branch_name }}
|
|
||||||
# url: '${{ steps.branch_name.outputs.branch_name }}.phoenix.klemp.local'
|
|
||||||
# image_url: ${{ steps.docker_build.outputs.image_url }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user