Skip to content

[3.6] Patch for unmounting shared storage with a cluster update #4282

[3.6] Patch for unmounting shared storage with a cluster update

[3.6] Patch for unmounting shared storage with a cluster update #4282

name: ParallelCluster Cookbook System Test CentOS 7
on:
push:
branches:
- develop
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
systemtest-build:
runs-on: ubuntu-latest
name: SystemTestCentos7
services:
registry:
image: registry:2
ports:
- 5000:5000
steps:
- uses: actions/checkout@main
- name: Get changed files
id: changed-files-excluding-tests
uses: tj-actions/changed-files@v35.6.0
with:
files_ignore: |
!.github
!CHANGELOG.md
!**/aws-parallelcluster-*/spec
!**/aws-parallelcluster-*/test
- name: Set up Docker Buildx
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true'
id: buildx
uses: docker/setup-buildx-action@v1
with:
driver-opts: network=host
- name: Install
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true'
id: docker_build
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./
file: ./system_tests/Dockerfile.centos7
push: true
tags: localhost:5000/pcluster/chef-base:centos7
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Configure
if: steps.changed-files-excluding-tests.outputs.any_changed == 'true'
run: |
sed -i 's/\(.*base_os":\).*/\1 "centos7",/' ${{ github.workspace }}/system_tests/dna.json
docker run -i -v ${{ github.workspace }}:/build -v ${{ github.workspace }}/system_tests/dna.json:/etc/chef/dna.json localhost:5000/pcluster/chef-base:centos7 /build/system_tests/systemd; echo $?