From eda5b3c50fe8236019130f0401c1aaa6abfe718c Mon Sep 17 00:00:00 2001 From: Baptiste Courtois Date: Tue, 30 Jul 2024 18:52:34 +0200 Subject: [PATCH] Add criteo's cookbooks CI --- .github/workflows/criteo-cookbooks-ci.yml | 45 ++++++++++++++++++++++ .travis.yml | 19 --------- .travis/client.pem.enc | Bin 1680 -> 0 bytes 3 files changed, 45 insertions(+), 19 deletions(-) create mode 100644 .github/workflows/criteo-cookbooks-ci.yml delete mode 100644 .travis.yml delete mode 100644 .travis/client.pem.enc diff --git a/.github/workflows/criteo-cookbooks-ci.yml b/.github/workflows/criteo-cookbooks-ci.yml new file mode 100644 index 0000000..94f7d1b --- /dev/null +++ b/.github/workflows/criteo-cookbooks-ci.yml @@ -0,0 +1,45 @@ +# This is a basic workflow to help you get started with Actions +name: Criteo Cookbooks CI +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + tags: [ 'v*' ] + pull_request: + branches: [ master ] + +jobs: + cookstyle: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + - name: Run Cookstyle + run: bundle exec cookstyle --display-cop-names --extra-details + rspec: + runs-on: windows-latest + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.1 + bundler-cache: true + - name: Run RSpec + run: bundle exec rspec + supermarket: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') + needs: [cookstyle, rspec] + steps: + - uses: actions/checkout@v4 + - name: Publish to supermarket + uses: afaundez/chef-supermarket-action@8cdbe1cccbe1ecd8685b2ea8f48780135bae7cee + with: + user: criteo + cookbook: wsus-server + category: Package Management + env: + SUPERMARKET_API_KEY: ${{ secrets.SUPERMARKET_API_KEY }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 14e19d3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: ruby -cache: bundler -rvm: -- 2.3.0 -sudo: false -deploy: - edge: - source: criteo-forks/dpl - branch: chef_ruby2 - provider: chef-supermarket - user_id: criteo - cookbook_category: Package Management - client_key: .travis/client.pem - skip_cleanup: true - on: - tags: true -before_deploy: -- openssl aes-256-cbc -K $encrypted_279b18d6fd1c_key -iv $encrypted_279b18d6fd1c_iv - -in .travis/client.pem.enc -out .travis/client.pem -d diff --git a/.travis/client.pem.enc b/.travis/client.pem.enc deleted file mode 100644 index 9316aba495e7ffd399ab3c52df8c197e119eeeed..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1680 zcmV;B2503J%n)P_H`H_t0E`-mv|~HN zTZhIb>wq8dTN$-7_>#6o(8P9Oz^>K#8Aoj&#^Q$+^$~3^Th*1}rn&Z%SY1kI*jE!( z`yb$bw@86Am{jm=E#W6J0BSBpRNgd7!DfKN3iX@y6LgewnuX;TYy1l_7sX_3DcrVOMyU04_(2oglv;KIb-S6cSV_#Td1dAVzS;gPYhm?oa-CV{@huwt5q0IS zPtY-}^#PhKnInH7zZ(EN7M&w0%F5b6;8o zBX?Ibpbc-w#=+n%Chw=1LwJ;u3&joz(&_m6rtnz-EX_xLu$gdhWWLTks|8X@!63~# z=>U6oL(xH^@mAM@e7J&5r$rpWeeko6`xbW^#z5}LI~`Hc;{F*_cSD`5VRnX8^pAVH zbkC6nRRWNB+MU>x&nCHnt!A^jAJw1Zj)4`|=hm73M?nqi-P#Q39ZpK6<>UkUp&$A2 ziW?%N6fc2gZY;f7I_%*Rry=U^e6BP~l2{#0Xb}-cSaQ+`1-s z=LvULw38E(`~&Ws>^*X=d{PNb-?g7PDJL63X>MSZhz(=Y?k+SQ*>7-ln^F;D<5(@{ zr}v_CHbp{2iG<%;2fHro%3JD6;BlS`@vi{7&1rJCD*jxJ{pLYh5I<%D%- zq-Y+{Mfc3-W;SnJ$D$z)LC{J6v)=;g;VJF|4E<9eangQJ$d40hBR40 z6!l&`3pieX5P1zN%5$!byMm)K2h*iI?2~fQ&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