This repository has been archived by the owner on May 9, 2024. It is now read-only.
Try capturing lengthy output *inside* the container #25
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: Deploy images | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "README.md" | |
pull_request: | |
branches: [main] | |
paths-ignore: | |
- "README.md" | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- blueprint: fedora-imagebuilder | |
container_tag: fedora-latest | |
- blueprint: centos-minimal | |
container_tag: centos-stream9 | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 | |
- name: Fill in the AWS template | |
run: | | |
cat shared/aws-template.toml | envsubst > shared/aws-config.toml | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_S3_BUCKET: major-aws-image-import | |
AWS_DEFAULT_REGION: us-east-1 | |
IMAGE_KEY: "${{ matrix.blueprint }}-${{ github.run_id }}" | |
- name: Run the build | |
run: ./build-image.sh | |
env: | |
BLUEPRINT_NAME: ${{ matrix.blueprint }} | |
IMAGE_KEY: "${{ matrix.blueprint }}-${{ github.run_id }}" | |
CONTAINER: "ghcr.io/major/imagebuilder/${{ matrix.container_tag }}:main" |