Skip to content

snapd, tool, github: packaging for Amazon Linux 2023 #26

snapd, tool, github: packaging for Amazon Linux 2023

snapd, tool, github: packaging for Amazon Linux 2023 #26

Workflow file for this run

name: Build repository

Check failure on line 1 in .github/workflows/buildrepo.yaml

View workflow run for this annotation

GitHub Actions / Build repository

Invalid workflow file

The workflow is not valid. .github/workflows/buildrepo.yaml: (Line: 12, Col: 18, Idx: 174) - (Line: 12, Col: 29, Idx: 185): While scanning a plain scalar, find unexpected ':'.
on:
pull_request:
branches: [ "master"]
push:
branches: [ "master" ]
jobs:
build-repo-job:
strategy:
matrix:
target: [amazonlinux:2, amazonlinux:2023]
runs-on: ubuntu-latest
container: ${{ matrix.target }}
steps:
- name: Install git
run: |
yum install git -y
- name: Checkout code
uses: actions/checkout@v2
- name: Build RPM packages
run: |
IN_CONTAINER=1 ./tool build
- name: Build repository tarball
run: |
IN_CONTAINER=1 ./tool createrepo
case ${{ matrix.target }} in
amazonlinux:2)
repo_file=amazon-linux-2-repo.tar.xz
;;
amazonlinux:2023)
repo_file=amazon-linux-2023-repo.tar.xz
;;
*)
echo "unsupported target ${{ matrix.target }}"
exit 1
;;
esac
tar -cJv repo > "$repo_file"
- name: Uploading repository tarball
uses: actions/upload-artifact@v2
with:
name: repo-tarball-${{ matrix.target }}
path: "amazon-linux-*-repo*.tar.xz"