Compare commits
1 Commits
209d6cdef8
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| dd56f6260a |
@@ -1,47 +0,0 @@
|
|||||||
name: BuildKit Build and Deploys
|
|
||||||
description: "Build and deploy images"
|
|
||||||
|
|
||||||
inputs:
|
|
||||||
registry_addr:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
registry_username:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
registry_password:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
buildkit_addr:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
default: "false"
|
|
||||||
name:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
default: "false"
|
|
||||||
context:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
default: "false"
|
|
||||||
dockerfile:
|
|
||||||
description: ""
|
|
||||||
required: true
|
|
||||||
default: "false"
|
|
||||||
runs:
|
|
||||||
using: "composite"
|
|
||||||
steps:
|
|
||||||
- name: Authenticate to Gitea registry
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.docker
|
|
||||||
AUTH=$(printf "%s" "${{ inputs.registry_username }}:${{ inputs.registry_password }}" | base64 -w 0)
|
|
||||||
printf '{"auths":{"${{ inputs.registry_addr }}":{"auth":"%s"}}}' "$AUTH" > ~/.docker/config.json
|
|
||||||
|
|
||||||
buildctl \
|
|
||||||
--addr ${{ inputs.buildkit_addr }} \
|
|
||||||
build \
|
|
||||||
--frontend=dockerfile.v0 \
|
|
||||||
--local context=${{ inputs.context }} \
|
|
||||||
--local dockerfile=${{ inputs.dockerfile }} \
|
|
||||||
--opt filename=Dockerfile \
|
|
||||||
--output type=image,name=${{ inputs.tags }},push=true
|
|
||||||
@@ -15,8 +15,16 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Fetch limbo public actions
|
||||||
|
env:
|
||||||
|
RUNNER_TEMP: "${{ runner.temp }}"
|
||||||
|
WORKSPACE: "${{ gitea.workspace }}"
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
||||||
|
|
||||||
- name: Build and Push Image
|
- name: Build and Push Image
|
||||||
uses: ./.gitea/actions/buildkit-build-push
|
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||||
with:
|
with:
|
||||||
registry_addr: git.limbosolutions.com
|
registry_addr: git.limbosolutions.com
|
||||||
registry_username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
registry_username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user