-
Notifications
You must be signed in to change notification settings - Fork 1.8k
39 lines (32 loc) · 1.12 KB
/
build-centos7-assets.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
name: Build CentOS 7 Buildbox Assets Images
run-name: Build CentOS 7 Buildbox Assets Images
on:
workflow_dispatch:
schedule:
- cron: '0 13 * * 0' # At 1:00 PM UTC every Sunday
env:
REGISTRY: ghcr.io
jobs:
buildbox-centos7-assets:
name: Build CentOS 7 Asset Buildbox
# Build assets on x86 for now, as no GHA-hosted runner for ARM64.
runs-on: ubuntu-22.04-32core
permissions:
contents: read
packages: write
steps:
- name: Checkout Teleport
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
with:
driver: docker
- name: Login to registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# We need to keep env vars in sync, so, we can't use standard build actions
- name: Build and push buildbox assets image
run: cd build.assets && make build-centos7-assets PUSH=1