Skip to content

Commit

Permalink
fixup! Hardcode Ubuntu version for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
rsmmr committed Jan 15, 2024
1 parent b3e8dfa commit e429446
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: CI pipeline

on: push

env:
ZEEK_LTS: -lts
ZEEK_VERSION: 6.0.2-0

jobs:
test_ubuntu_latest:
test_ubuntu_22:
runs-on: ubuntu-22.04

strategy:
matrix:
zeek: [{version: 6.0.2-0, tag: -lts}]

env:
ZEEK_VERSION: ${{ matrix.zeek.version }}
ZEEK_TAG: ${{ matrix.zeek.tag }}

steps:
- name: Prepare
run: |
Expand All @@ -19,8 +23,8 @@ jobs:
- name: Install Zeek
run: |
(cd /tmp && curl -L -O https://download.opensuse.org/repositories/security:/zeek/xUbuntu_22.04/amd64/zeek${ZEEK_LTS}_${ZEEK_VERSION}_amd64.deb)
sudo apt install -y /tmp/zeek${ZEEK_LTS}-core_${ZEEK_VERSION}_amd64.deb
(cd /tmp && curl -L -O https://download.zeek.org/binary-packages/xUbuntu_22.04/amd64/zeek${ZEEK_TAG}-core_${ZEEK_VERSION}_amd64.deb)
sudo apt install -y /tmp/zeek${ZEEK_TAG}-core_${ZEEK_VERSION}_amd64.deb
echo "/opt/zeek/bin:$PATH" >> $GITHUB_PATH
- name: Checkout repository
Expand All @@ -47,7 +51,7 @@ jobs:
publish_release:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: [test_ubuntu_latest]
needs: [test_ubuntu_22]
steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit e429446

Please sign in to comment.