Co-authored-by: Márcio Fernandes <marcio.fernandes@outlook.pt> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
@@ -6,28 +6,32 @@ on:
|
|||||||
- "pbsclient/**"
|
- "pbsclient/**"
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 16 * * Sun"
|
- cron: "0 16 * * Sun"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: oci-image-builder
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Log in to git.limbosolutions.com docker registry
|
- name: Fetch limbo public actions
|
||||||
uses: docker/login-action@v3
|
env:
|
||||||
with:
|
RUNNER_TEMP: "${{ runner.temp }}"
|
||||||
registry: git.limbosolutions.com
|
WORKSPACE: "${{ gitea.workspace }}"
|
||||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
run: |
|
||||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
curl -fsSL https://git.limbosolutions.com/kb/gitea/raw/branch/main/cloud-scripts/setup-limbo-actions.sh | bash 2>&1
|
||||||
|
|
||||||
- name: Build and push Docker images
|
- name: Build and Push Image
|
||||||
id: push
|
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
with:
|
||||||
context: ${{gitea.workspace}}/pbsclient
|
registry_addr: git.limbosolutions.com
|
||||||
file: ${{gitea.workspace}}/pbsclient/docker/Dockerfile
|
registry_username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||||
push: true
|
registry_password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||||
tags: git.limbosolutions.com/kb/pbsclient
|
buildkit_addr: tcp://buildkitd.buildkit.svc.cluster.local:1234
|
||||||
|
context: ./pbsclient
|
||||||
|
dockerfile: ./pbsclient/docker
|
||||||
|
name: git.limbosolutions.com/kb/pbsclient:latest
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user