Skip to content

Commit

Permalink
Build docker images on lotus.
Browse files Browse the repository at this point in the history
  • Loading branch information
jone committed Jul 15, 2024
1 parent 5c9fdc5 commit 5bf2183
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ name: Build Docker image

on:
push:
branches:
- '**'
tags:
- '*.*.*'

jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -31,7 +33,10 @@ jobs:
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
with:
driver: remote
endpoint: tcp://buildkitd.buildx:1234

- name: Login to DockerHub
uses: docker/login-action@v2
Expand All @@ -47,14 +52,15 @@ jobs:
4teamwork/ogcore
tags: |
type=pep440,pattern={{version}}
type=sha
- name: Build and push ogcore
uses: docker/build-push-action@v3
with:
context: .
file: ./docker/core/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: ${{ steps.meta_ogcore.outputs.tags }}
labels: ${{ steps.meta_ogcore.outputs.labels }}
cache-from: type=gha,scope=ogcore
Expand Down

0 comments on commit 5bf2183

Please sign in to comment.