generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
44 lines (39 loc) · 1.08 KB
/
build-kit.yaml
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
42
43
name: build-kit docker image
on:
workflow_dispatch:
inputs:
base-system:
type: choice
description: Base system type
default: 'alpine'
required: true
options:
- alpine
- debian
tag:
type: string
description: Image tag
default: 'latest'
jobs:
main:
name: Build and push
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup docker buildx
uses: docker/setup-buildx-action@v2
- name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: docker/images/build-kit
file: docker/images/build-kit/${{ inputs.base-system }}.Dockerfile
tags: ghcr.io/everest/build-kit-${{ inputs.base-system }}:${{ inputs.tag }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max