-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 960 Bytes
/
build.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
name: build
on:
push:
branches:
- master
paths:
- vendor/**
workflow_dispatch:
inputs:
projects:
required: true
description: A list of vendor projects (top level folder in vendors/) separated by spaces.
type: string
env:
REGISTRY: ghcr.io
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
CONTAINER_URL: https://github.com/${{ github.repository }}
jobs:
build-changed:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: docker login
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: docker buildx build and push
run: ./scripts/build-and-push.sh ${{ inputs.projects }}