Skip to content

Commit

Permalink
deb rpm: Update .github/workflows/apt.yml
Browse files Browse the repository at this point in the history
Co-authored-by: Daijiro Fukuda <fukuda@clear-code.com>
Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
  • Loading branch information
kenhys and daipom committed Oct 24, 2024
1 parent ec7d14f commit 2c35a1b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 25 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,16 @@ jobs:
- name: Build deb with Docker
run: |
rake apt:build APT_TARGETS=${{ matrix.rake-job }}
- uses: actions/checkout@master
with:
path: v6-test
- name: Build v6 deb with Docker
run: |
cd v6-test
git config user.email "fluentd@googlegroups.com"
git config user.name "Fluentd developers"
git am fluent-package/bump-version-v6.patch
rake apt:build APT_TARGETS=${{ matrix.rake-job }}
- name: Relocate packages
run: |
cp -r fluent-package/apt/repositories fluent-package/apt/v6repositories
find fluent-package/apt/repositories -name 'fluent-package_6*.deb' | xargs rm -f
find fluent-package/apt/repositories -name 'fluent-package-dbgsym_6*.deb' | xargs rm -f
find fluent-package/apt/repositories -name 'td-agent_6*.deb' | xargs rm -f
find fluent-package/apt/v6repositories -name 'fluent-package_5*.deb' | xargs rm -f
find fluent-package/apt/v6repositories -name 'fluent-package-dbgsym_5*.deb' | xargs rm -f
find fluent-package/apt/v6repositories -name 'td-agent_5*.deb' | xargs rm -f
- name: Upload fluent-package deb
uses: actions/upload-artifact@master
with:
Expand All @@ -70,7 +65,7 @@ jobs:
uses: actions/upload-artifact@master
with:
name: v6-packages-${{ matrix.rake-job }}
path: fluent-package/apt/v6repositories
path: v6-test/fluent-package/apt/repositories
- name: Upload fluent-apt-source deb
uses: actions/upload-artifact@master
with:
Expand Down Expand Up @@ -204,7 +199,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: v6-packages-${{ matrix.rake-job }}
path: v6repositories
path: v6-test
- uses: actions/download-artifact@v4
with:
name: packages-apt-source-${{ matrix.rake-job }}
Expand Down
19 changes: 7 additions & 12 deletions .github/workflows/yum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,16 @@ jobs:
- name: Build rpm with Docker
run: |
rake yum:build YUM_TARGETS=${{ matrix.rake-job }}
- uses: actions/checkout@master
with:
path: v6-test
- name: Build v6 rpm with Docker
run: |
cd v6-test
git config user.email "fluentd@googlegroups.com"
git config user.name "Fluentd developers"
git am fluent-package/bump-version-v6.patch
rake yum:build YUM_TARGETS=${{ matrix.rake-job }}
- name: Relocate packages
run: |
cp -r fluent-package/yum/repositories fluent-package/yum/v6repositories
find fluent-package/yum/repositories -name 'fluent-package-6*.rpm' | xargs rm -f
find fluent-package/yum/repositories -name 'fluent-package-debug*-6*.rpm' | xargs rm -f
find fluent-package/yum/repositories -name 'td-agent_6*.rpm' | xargs rm -f
find fluent-package/yum/v6repositories -name 'fluent-package-5*.rpm' | xargs rm -f
find fluent-package/yum/v6repositories -name 'fluent-package-debug*-5*.rpm' | xargs rm -f
find fluent-package/yum/v6repositories -name 'td-agent-5*.rpm' | xargs rm -f
- name: Upload fluent-package rpm
uses: actions/upload-artifact@v4
with:
Expand All @@ -70,7 +65,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: v6-packages-${{ matrix.rake-job }}
path: fluent-package/yum/v6repositories
path: v6-test/fluent-package/yum/repositories
# TODO move the following steps to "Test" job
- name: Check Package Size
run: |
Expand Down Expand Up @@ -164,7 +159,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: v6-packages-${{ matrix.rake-job }}
path: v6repositories
path: v6-test
- uses: canonical/setup-lxd@v0.1.1
- name: Run Test ${{ matrix.test }} on ${{ matrix.lxc-image }}
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.lxc-image }} ${{ matrix.test }}
Expand Down Expand Up @@ -208,7 +203,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: v6-packages-${{ matrix.rake-job }}
path: v6repositories
path: v6-test
- uses: canonical/setup-lxd@v0.1.1
- name: Run Test ${{ matrix.test }} on ${{ matrix.lxc-image }}
run: fluent-package/yum/systemd-test/test.sh ${{ matrix.lxc-image }} ${{ matrix.test }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sudo /opt/fluent/bin/fluent-gem install --no-document linux-utmpx

# Install next major version
sudo apt install -V -y \
/host/v6repositories/${distribution}/pool/${code_name}/${channel}/*/*/fluent-package_*_${architecture}.deb
/host/v6-test/${distribution}/pool/${code_name}/${channel}/*/*/fluent-package_*_${architecture}.deb

# Test: Check whether plugin/gem were installed during upgrading
/opt/fluent/bin/fluent-gem list | grep fluent-plugin-concat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sudo /opt/fluent/bin/fluent-gem install --no-document fluent-plugin-concat
sudo /opt/fluent/bin/fluent-gem install --no-document linux-utmpx

# Install next major version
package="/host/v6repositories/${distribution}/${DISTRIBUTION_VERSION}/x86_64/Packages/fluent-package-*.rpm"
package="/host/v6-test/${distribution}/${DISTRIBUTION_VERSION}/x86_64/Packages/fluent-package-*.rpm"
sudo $DNF install -y $package

# Test: Check whether plugin/gem were installed during upgrading
Expand Down

0 comments on commit 2c35a1b

Please sign in to comment.