Skip to content

Commit

Permalink
Minor fixes on GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jnasselle authored and jotacarma90 committed Aug 9, 2023
1 parent b6f8b56 commit dca1674
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-deb-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- 'debs/Debian/7/i386/**'
- 'debs/build.sh'
deb_images_manager_amd64:
- 'debs/Debian/8/md64/**'
- 'debs/Debian/8/amd64/**'
- 'debs/build.sh'
deb_images_agent_amd64:
- 'debs/Debian/7/amd64/**'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-rpm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
MAJOR=$(sed 's/\([0-9]*\.[0-9]*\)\.[0-9]*/\1/' $GITHUB_WORKSPACE/VERSION)
if [ "${{ steps.changes.outputs.rpm_images }}" == "true" ]; then echo "TAG=${{ github.head_ref }}" >> $GITHUB_ENV; else echo "TAG=$MAJOR" >> $GITHUB_ENV ; fi
if [ $MAJOR == "4.8" ]; then echo "VERSION=master" >> $GITHUB_ENV ; else echo "VERSION=$(cat $GITHUB_WORKSPACE/VERSION)" >> $GITHUB_ENV; fi
if [ "${{ matrix.ARCHITECTURE }}" == "x86_64" ]; then echo "CONTAINER_NAME=rpm_builder_x86" >> $GITHUB_ENV ; else echo "CONTAINER_NAME=rpm_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; fi
if [ "${{ matrix.ARCHITECTURE }}" == "x86_64" ]; then echo "CONTAINER_NAME=rpm_${{ matrix.TYPE }}_builder_x86" >> $GITHUB_ENV ; else echo "CONTAINER_NAME=rpm_builder_${{ matrix.ARCHITECTURE }}" >> $GITHUB_ENV ; fi
- name: Download docker image for package building
if : steps.changes.outputs.rpm_packages == 'true' || (steps.changes.outputs.rpm_images_i386 == 'true' && matrix.ARCHITECTURE == 'i386') || ((steps.changes.outputs.rpm_images_manager_x86_64 == 'true' || steps.changes.outputs.rpm_images_agent_x86_64 == 'true') && matrix.ARCHITECTURE == 'x86_64')
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/test-install-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ jobs:

Wait-for-package-building:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Cancel previous runs
uses: fkirc/skip-duplicate-actions@master
Expand Down Expand Up @@ -56,10 +54,11 @@ jobs:
- 'debs/Debian/**'
- 'debs/build.sh'
deb_images_i386:
- 'debs/Debian/i386/**'
- 'debs/Debian/7/i386/**'
- 'debs/build.sh'
deb_images_amd64:
- 'debs/Debian/amd64/**'
- 'debs/Debian/7/amd64/**'
- 'debs/Debian/8/amd64/**'
- 'debs/build.sh'
deb_packages:
- 'debs/SPECS/**'
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/test-install-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
jobs:
Wait-for-package-building:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Cancel previous runs
uses: fkirc/skip-duplicate-actions@master
Expand All @@ -34,18 +32,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
system: [
{NAME: 'oraclelinux:9', ARCH: "x86_64"},
{NAME: 'almalinux:9', ARCH: "x86_64"},
{NAME: 'rockylinux:9', ARCH: "x86_64"},
{NAME: 'centos:7', ARCH: "x86_64"},
{NAME: 'centos:8', ARCH: "x86_64"},
{NAME: 'i386/centos:7', ARCH: "i386"},
{NAME: 'redhat/ubi8:latest', ARCH: "x86_64"},
{NAME: 'redhat/ubi9:latest', ARCH: "x86_64"},
{NAME: 'amazonlinux:2', ARCH: "x86_64"},
{NAME: 'fedora:34', ARCH: "x86_64"},
{NAME: 'centos:6.9', ARCH: "x86_64", INIT: "initd"}]
system:
- {NAME: 'oraclelinux:9', ARCH: "x86_64"}
- {NAME: 'almalinux:9', ARCH: "x86_64"}
- {NAME: 'rockylinux:9', ARCH: "x86_64"}
- {NAME: 'centos:7', ARCH: "x86_64"}
- {NAME: 'centos:8', ARCH: "x86_64"}
- {NAME: 'i386/centos:7', ARCH: "i386"}
- {NAME: 'redhat/ubi8:latest', ARCH: "x86_64"}
- {NAME: 'redhat/ubi9:latest', ARCH: "x86_64"}
- {NAME: 'amazonlinux:2', ARCH: "x86_64"}
- {NAME: 'fedora:34', ARCH: "x86_64"}
- {NAME: 'centos:6.9', ARCH: "x86_64", INIT: "initd"}
type: [agent, manager]
exclude:
- system: {ARCH: "i386"}
Expand All @@ -69,6 +67,7 @@ jobs:
- 'rpms/build.sh'
rpm_images_x86_64:
- 'rpms/CentOS/6/x86_64/**'
- 'rpms/CentOS/7/x86_64/**'
- 'rpms/build.sh'
rpm_packages:
- 'rpms/SPECS/**'
Expand Down
2 changes: 1 addition & 1 deletion rpms/CentOS/7/x86_64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ ADD build.sh /usr/local/bin/build_package
RUN chmod +x /usr/local/bin/build_package

# Set the entrypoint
ENTRYPOINT ["/usr/local/bin/build_package"]
ENTRYPOINT ["/usr/local/bin/build_package"]

0 comments on commit dca1674

Please sign in to comment.