Skip to content

Commit

Permalink
chore(ci): update all actions + use tags commit hash instead of tag n…
Browse files Browse the repository at this point in the history
…ame.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Oct 24, 2024
1 parent 0e87b14 commit e487648
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
dockerfile_changed: ${{ steps.filter.outputs.docker }}
steps:
- name: Checkout repo ⤵️
uses: actions/checkout@v3
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

# test that the Dockerfile builds at all
# CircleCI handles pushes for now
- name: Build Image
uses: docker/build-push-action@v3
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
file: docker/Dockerfile
context: .
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo ⤵️
uses: actions/checkout@v3
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

- name: Lint Dockerfile
uses: hadolint/hadolint-action@v2.0.0
uses: hadolint/hadolint-action@54c9adbab1582c2ef04b2016b760714a4bfde3cf # v3.1.0
with:
dockerfile: docker/Dockerfile
ignore: DL3008

- name: Lint kernel-crawler
uses: cclauss/[email protected]
uses: cclauss/GitHub-Action-for-pylint@8ef4d22e119fb1cdc0f58f2e95cb1f8d8b0d55e6 # 0.7.0
with:
args: "pip install -r requirements.txt ; pylint kernel_crawler"
continue-on-error: true # allow failure for now

- name: Lint YAML
uses: karancode/[email protected]
uses: karancode/yamllint-github-action@fdef6bc189425ecc84cc4543b2674566c0827053 # v2.1.1
with:
yamllint_file_or_dir: '.github/workflows/'
yamllint_strict: false
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,29 @@ on:

jobs:
build-images:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0

- name: Login to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_SECRET }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
with:
platforms: 'amd64,arm64'

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1

- name: Build and push container images
uses: docker/build-push-action@v3
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 # v6.9.0
with:
platforms: linux/amd64,linux/arm64
file: docker/Dockerfile
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
outputs:
crawler_changed: ${{ steps.filter.outputs.crawler }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

Check warning on line 17 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

17:73 [comments] too few spaces before comment
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2

Check warning on line 18 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

18:75 [comments] too few spaces before comment
id: filter
with:
filters: |
Expand All @@ -29,12 +29,12 @@ jobs:
if: needs.paths-filter.outputs.crawler_changed == 'true'
steps:
- name: Checkout repo ⤵️
uses: actions/checkout@v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

Check warning on line 32 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

32:73 [comments] too few spaces before comment

- name: Run crawler
id: crawler
uses: ./

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3

Check warning on line 38 in .github/workflows/test.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

38:80 [comments] too few spaces before comment
with:
path: ${{ steps.crawler.outputs.json }}
6 changes: 3 additions & 3 deletions .github/workflows/update-kernels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
arch: 'aarch64'

- name: Checkout crawler
uses: actions/checkout@v4
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1

Check warning on line 35 in .github/workflows/update-kernels.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

35:73 [comments] too few spaces before comment

- name: Move generated files to site folder
run: |
Expand All @@ -41,9 +41,9 @@ jobs:
mkdir site/aarch64
mv ${{ steps.crawler_aarch64.outputs.json }} site/aarch64/list.json
- uses: actions/upload-pages-artifact@v1
- uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1

Check warning on line 44 in .github/workflows/update-kernels.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

44:86 [comments] too few spaces before comment
with:
path: 'site'

- id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

Check warning on line 49 in .github/workflows/update-kernels.yml

View workflow job for this annotation

GitHub Actions / Lints and Scans

49:77 [comments] too few spaces before comment

0 comments on commit e487648

Please sign in to comment.