move to oci.limbosolutions.com/public/cloudflare-updatedns:latest
/ build-push-image (push) Failing after 12s
/ build-push-image (push) Failing after 12s
This commit is contained in:
@@ -1,27 +1,40 @@
|
|||||||
on:
|
on:
|
||||||
push
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
schedule:
|
||||||
|
- cron: '@weekly' # once per week
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-push-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ["oci-image-builder", "amd64"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Log in to git.limbosolutions.com docker registry
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.limbosolutions.com
|
|
||||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push Docker images
|
- name: Fetch limbo public actions
|
||||||
id: push
|
env:
|
||||||
uses: docker/build-push-action@v6
|
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
|
||||||
|
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||||
with:
|
with:
|
||||||
context: ${{gitea.workspace}}
|
tags: oci.limbosolutions.com/public/cloudflare-updatedns:latest
|
||||||
file: ${{gitea.workspace}}/Dockerfile
|
registry_addr: ${{ vars.OCI_LIMBO_REGISTRY_ADDRESS }}
|
||||||
push: true
|
registry_username: ${{ secrets.OCI_LIMBO_REGISTRY_PUBLIC_USERNAME }}
|
||||||
tags: git.limbosolutions.com/mylimbo/cloudflare-updatedns:latest
|
registry_password: ${{ secrets.OCI_LIMBO_REGISTRY_PUBLIC_PASSWORD }}
|
||||||
|
buildkit_addr: ${{ vars.BUILDKIT_ADDRESS }}
|
||||||
|
dockerfile: ${{gitea.workspace}}/devops
|
||||||
|
context: ${{gitea.workspace}}/devops
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
# requires .env file check script for required variables
|
# requires .env file check script for required variables
|
||||||
docker run --name mylimbo-cloudflare-updatedns --env-file ./.env git.limbosolutions.com/mylimbo/cloudflare-updatedns:latest
|
docker run --name mylimbo-cloudflare-updatedns --env-file ./.env oci.limbosolutions.com/public/cloudflare-updatedns:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## execute direcly without docker
|
## execute direcly without docker
|
||||||
@@ -20,5 +20,5 @@ bash -c ./src/update-ip.sh
|
|||||||
## build local image
|
## build local image
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
docker build -t git.limbosolutions.com/mylimbo/cloudflare-updatedns:latest .
|
docker build -t oci.limbosolutions.com/public/cloudflare-updatedns:local-latest .
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user