Skip to content

Commit

Permalink
chore(ci/cd): improve build
Browse files Browse the repository at this point in the history
  • Loading branch information
markuslf committed Jan 25, 2025
1 parent 42a2ccc commit c54951d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/lf-linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/debian11" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -88,7 +88,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/debian11'

- name: 'Test on Debian 11'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/debian11,destination=/output,relabel=private \
Expand All @@ -114,7 +114,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/debian12" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -124,7 +124,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/debian12'

- name: 'Test on RHEL8'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/debian12,destination=/output,relabel=private \
Expand All @@ -151,7 +151,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/rocky8" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -161,7 +161,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/rocky8'

- name: 'Test on RHEL8'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/rocky8,destination=/output,relabel=private \
Expand All @@ -187,7 +187,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/rocky9" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -197,7 +197,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/rocky9'

- name: 'Test on RHEL8'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/rocky9,destination=/output,relabel=private \
Expand Down Expand Up @@ -234,7 +234,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/ubuntu2004'

- name: 'Test on Ubuntu 20.04'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/ubuntu2004,destination=/output,relabel=private \
Expand All @@ -260,7 +260,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2204" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -270,7 +270,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/ubuntu2204'

- name: 'Test on Ubuntu 22.04'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/ubuntu2204,destination=/output,relabel=private \
Expand All @@ -296,7 +296,7 @@ jobs:
- name: 'Check directory existence'
id: 'check_dir'
run: |
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2004" ]; then
if [ -d "${{ env.BASE_DIR }}/monitoring-plugins-linux-packages/ubuntu2404" ]; then
echo "exists=true" >> $GITHUB_ENV
else
echo "exists=false" >> $GITHUB_ENV
Expand All @@ -306,7 +306,7 @@ jobs:
run: 'mkdir ${{ env.BASE_DIR }}/output/ubuntu2404'

- name: 'Test on Ubuntu 24.04'
if: 'env.exists == "true"'
if: env.exists == 'true'
run: |-
podman run --interactive --rm \
--mount type=bind,source=${{ env.BASE_DIR }}/output/ubuntu2404,destination=/output,relabel=private \
Expand Down

0 comments on commit c54951d

Please sign in to comment.