Compare commits
5 Commits
2c78aeeddd
...
0bf4036603
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0bf4036603 | ||
|
|
a0b9e5b692 | ||
|
|
0938ce1270 | ||
|
|
0b523e75fd | ||
|
|
14170e3261 |
36
.gitea/actions/build/action.yml
Normal file
36
.gitea/actions/build/action.yml
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Build docker image
|
||||||
|
description: 'builds docker image'
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: 'Docker image tag'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
image_url:
|
||||||
|
description: 'Full image URL that was built'
|
||||||
|
value: ${{ steps.build.outputs.image_url }}
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
steps:
|
||||||
|
- name: Set up Docker Build
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Log in to registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{ vars.INSTANCE_URL }}
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push image
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: ${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ inputs.tag }}
|
||||||
|
|
||||||
|
- name: Set output
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "image_url=${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ inputs.tag }}" >> $GITHUB_OUTPUT
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
name: Build docker image
|
|
||||||
inputs:
|
|
||||||
tag:
|
|
||||||
description: 'Docker image tag'
|
|
||||||
required: true
|
|
||||||
|
|
||||||
outputs:
|
|
||||||
image_url:
|
|
||||||
description: 'Full image URL that was built'
|
|
||||||
value: ${{ steps.build.outputs.image_url }}
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build_docker:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Set up Docker Build
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Log in to registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ vars.INSTANCE_URL }}
|
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build and push image
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: ${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ inputs.tag }}
|
|
||||||
|
|
||||||
- name: Set output
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo "image_url=${{ vars.INSTANCE_URL }}/tech-reborn/phoenix:${{ inputs.tag }}" >> $GITHUB_OUTPUT
|
|
||||||
@@ -3,16 +3,14 @@ on: issue_comment
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testing:
|
testing:
|
||||||
# if: |
|
if: |
|
||||||
# github.event.issue.pull_request &&
|
gitea.event.issue.pull_request &&
|
||||||
# startsWith(github.event.comment.body, '/deploy') &&
|
startsWith(gitea.event.comment.body, '/deploy')
|
||||||
# (github.event.comment.author_association == 'OWNER' ||
|
|
||||||
# github.event.comment.author_association == 'MEMBER')
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Get tag safe branch name
|
- name: Get tag safe branch name
|
||||||
id: branch_name
|
id: branch_name
|
||||||
uses: .gitea/actions/getTagSafeRef
|
uses: ./.gitea/actions/getTagSafeRef
|
||||||
|
|
||||||
- name: Print branch_name
|
- name: Print branch_name
|
||||||
run: echo "${{ steps.branch_name.outputs.branch_name }}"
|
run: echo "${{ steps.branch_name.outputs.branch_name }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user