Build CentOS 7 Buildbox Assets Images #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 | |
with: | |
driver: docker | |
- name: Login to registry | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.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 |