-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (36 loc) · 1.2 KB
/
build_workpool_operator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: geoBoundaries Base Image Build
run-name: gB k8s Workpool Operator
on: push
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Check out the repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Define lowercase repository owner
id: repo
run: echo "REPO_OWNER=$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
file: ./geoBoundaryBuilder/images/k8s_worker.Dockerfile
push: true
tags: ghcr.io/${{ env.REPO_OWNER }}/gb-workpool-operator:latest
build-args: BUILDKIT_STEP_LOG_MAX_SIZE=10485760 BUILDKIT_STEP_LOG_MAX_SPEED=100000000
env:
# Enable Docker CLI debug output
DOCKER_BUILDKIT: 1
DOCKER_CLI_EXPERIMENTAL: enabled
DEBUG: 1