container - image - build - buildkit
All checks were successful
/ build-push-container-image (push) Successful in 3m44s
All checks were successful
/ build-push-container-image (push) Successful in 3m44s
This commit is contained in:
@@ -7,31 +7,47 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
build-docker-image:
|
build-push-container-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: 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: Log in to git.limbosolutions.com docker registry
|
- name: Build and push Image
|
||||||
uses: docker/login-action@v3
|
uses: ./.gitea/limbo_actions/buildkit-build-push
|
||||||
with:
|
|
||||||
registry: git.limbosolutions.com
|
|
||||||
username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Set build timestamp
|
|
||||||
run: echo "BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build and push Docker images
|
|
||||||
id: push
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
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}}/devops
|
||||||
context: ${{gitea.workspace}}/devops
|
context: ${{gitea.workspace}}/devops
|
||||||
file: ${{gitea.workspace}}/devops/Dockerfile
|
tags: git.limbosolutions.com/mylimbo/devcontainers/devops:latest
|
||||||
push: true
|
|
||||||
labels: |
|
|
||||||
dev.containers.timestamp=${{ env.BUILD_TIMESTAMP }}
|
|
||||||
tags: git.limbosolutions.com/mylimbo/devcontainers/devops:latest
|
# evidence of previously setting labels during build
|
||||||
|
|
||||||
|
# - name: Set build timestamp
|
||||||
|
# run: echo "BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
# - name: Build and push Docker images
|
||||||
|
# id: push
|
||||||
|
# uses: docker/build-push-action@v6
|
||||||
|
# with:
|
||||||
|
# context: ${{gitea.workspace}}/devops
|
||||||
|
# file: ${{gitea.workspace}}/devops/Dockerfile
|
||||||
|
# push: true
|
||||||
|
# labels: |
|
||||||
|
# dev.containers.timestamp=${{ env.BUILD_TIMESTAMP }}
|
||||||
|
# tags: git.limbosolutions.com/mylimbo/devcontainers/devops:latest
|
||||||
Reference in New Issue
Block a user