-
Notifications
You must be signed in to change notification settings - Fork 184
34 lines (32 loc) · 1006 Bytes
/
kindling-ci.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
name: Kindling-agent-CI
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-latest-test:
if: github.repository == 'KindlingProject/kindling'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Set TAG
run: echo "TAG=latesttest" >> $GITHUB_ENV
- uses: actions/checkout@v3
- name: build-by-builder-container
uses: addnab/docker-run-action@v3
with:
image: kindlingproject/agent-builder:latest
options: -v ${{ github.workspace }}:/kindling -w /kindling
run: make
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME}}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: ${{ github.workspace }}/collector/docker
push: true
tags: kindlingproject/kindling-agent:${{ env.TAG }}