-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.29 KB
/
build_agents.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: Deploy build agents
on:
workflow_dispatch:
inputs:
name:
description: 'Runner version'
default: '2.286.0'
required: true
jobs:
# This workflow contains a single job called "greet"
greet:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout infra
uses: actions/checkout@v2
with:
repository: BowellSolutions/bowell-infra
token: ${{ secrets.GH_PAT }}
path: infra
ref: develop
- name: Login to private container registry
uses: docker/login-action@v1
with:
registry: ${{ secrets.PCR_URL }}
username: ${{ secrets.PCR_USER_NAME }}
password: ${{ secrets.PCR_PASSWORD }}
- name: install buildx
id: buildx
uses: crazy-max/ghaction-docker-buildx@v1
with:
version: latest
- name: build the image
run: |
docker buildx build \
--tag ${{ secrets.PCR_URL }}/bowelsound/build-agent:${{ github.run_id }}_${{ github.run_number }} \
--platform linux/amd64 --push=true --build-arg RUNNER_VERSION=${{ github.event.inputs.name }} ./infra/build-agents