Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing workflows #165

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
sudo apt-get install -y debsigs
bash ./scripts/sign.sh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(matrix.packages.available-flavors, env.FB_PACKAGE_NAME) }}
with:
name: ${{ env.FB_PACKAGE_NAME }}_${{ env.VERSION }}_rpm
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
sudo apt-get install -y debsigs
bash ./scripts/sign.sh

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
if: ${{ contains(matrix.packages.available-flavors, env.FB_PACKAGE_NAME) }}
with:
name: ${{ env.FB_PACKAGE_NAME }}_${{ env.VERSION }}_deb
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
unzip fluent-bit-${{ env.VERSION }}-${{ matrix.packages.version }}.zip
zip -r -j packages/fb-windows-${{ matrix.packages.arch }}.zip fluent-bit-${{ env.VERSION }}-${{ matrix.packages.version }}/bin/fluent-bit.exe fluent-bit-${{ env.VERSION }}-${{ matrix.packages.version }}/bin/fluent-bit.dll

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: fluent-bit_${{ env.VERSION }}_zip
path: packages/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
# for those distros using the same package, such as Windows). To avoid this, we first push all the files to a
# shared filesystem and let the "prepare_prerelease" step below upload them later, sequentially. This GH action
# ensures that if two jobs attempt pushing the same file, they get overwritten (last one prevails).
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
# Artifacts are pushed to *shared network folders* that have this name and that contain
# the artifact inside of them. Example: fluent-bit-2.1.8-386.exe/fluent-bit-2.1.8-386.exe
Expand Down
40 changes: 39 additions & 1 deletion ansible/build-fb-suse/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@
tasks:
- name: Wait for connection to be available
wait_for_connection:
- name: Debug repository configuration
command: zypper repos
register: repo_output
ignore_errors: yes

- name: Print repository configuration
debug:
var: repo_output.stdout_lines

- name: Refresh repositories
command: zypper refresh
register: refresh_output
ignore_errors: yes

- name: Print refresh output
debug:
var: refresh_output.stdout_lines

- name: Install dependencies
community.general.zypper:
Expand All @@ -58,9 +75,30 @@
become: true
register: install_status
until: install_status is success
# Retry up to 5 minutes, because at startup the zypper command might temporarily hold a lock that prevents installing packages
delay: 15
retries: 20
# - name: Install dependencies
# community.general.zypper:
# name:
# - git
# - flex
# - wget
# - libyaml-devel
# - libopenssl-devel
# - systemd-devel
# - gcc
# - gcc-c++
# - rpmbuild
# - "{{ cpp_with_version }}"
# state: present
# oldpackage: true
# force_resolution: true
# become: true
# register: install_status
# until: install_status is success
# # Retry up to 5 minutes, because at startup the zypper command might temporarily hold a lock that prevents installing packages
# delay: 15
# retries: 20

- name: Download and extract Bison {{ bison_version }}
unarchive:
Expand Down
3 changes: 2 additions & 1 deletion versions/common.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
fbVersion: 3.1.2
#fluent bit version
fbVersion: 3.1.9

# This file, together with each distro file are processed and merged incrementally to
# build all the information required to download and test each package. Each package ends
Expand Down
Loading