This commit is contained in:
35
.gitea/workflows/ docker-image.deploy.yml
Normal file
35
.gitea/workflows/ docker-image.deploy.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- "docker/**"
|
||||
- ".gitea/**"
|
||||
schedule:
|
||||
- cron: "0 16 * * SUN" # Sunday at 4PM
|
||||
jobs:
|
||||
|
||||
build-docker-image:
|
||||
runs-on: ["oci-image-builder", "amd64"]
|
||||
|
||||
steps:
|
||||
|
||||
- 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: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Build and push Docker Image
|
||||
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||
with:
|
||||
registry_addr: ${{ vars.GITLIMBO_DOCKER_REGISTRY_ADDRESS }}
|
||||
registry_username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
||||
registry_password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
||||
buildkit_addr: ${{ vars.BUILDKIT_ADDRESS }}
|
||||
dockerfile: ${{gitea.workspace}}/docker
|
||||
tags: git.limbosolutions.com/kb/borg-backup
|
||||
|
||||
Reference in New Issue
Block a user