Skip to content

Commit

Permalink
Merge pull request #62 from crowdsecurity/update-actions
Browse files Browse the repository at this point in the history
update CI actions
  • Loading branch information
mmetc authored Dec 20, 2024
2 parents d0a6463 + ff57cb6 commit 11c29d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
changed: ${{ steps.changed_addons.outputs.changed }}
steps:
- name: Check out the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: Get changed files
id: changed_files
Expand Down Expand Up @@ -63,7 +63,7 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: Get information
id: info
Expand Down Expand Up @@ -99,9 +99,9 @@ jobs:
fi
- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.6.0
uses: docker/setup-buildx-action@v3

- name: Check if add-on should be built
id: check
Expand All @@ -118,14 +118,14 @@ jobs:
fi
- name: Login to GitHub Container Registry
if: env.BUILD_ARGS != '--test'
uses: docker/login-action@v1.12.0
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build ${{ matrix.addon }} add-on
if: steps.check.outputs.build_arch == 'true'
uses: docker/build-push-action@v2.9.0
uses: docker/build-push-action@v6
with:
push: true
context: ./${{ matrix.addon }}
Expand All @@ -141,4 +141,4 @@ jobs:
BUILD_VERSION=${{ needs.information.outputs.version }}
labels: |
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.revision=${{ github.sha }}
org.opencontainers.image.revision=${{ github.sha }}
6 changes: 3 additions & 3 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
addons: ${{ steps.addons.outputs.addons_list }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: 🔍 Find add-on directories
id: addons
Expand All @@ -28,9 +28,9 @@ jobs:
path: ${{ fromJson(needs.find.outputs.addons) }}
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: 🚀 Run Home Assistant Add-on Lint
uses: frenck/[email protected]
with:
path: "./${{ matrix.path }}"
path: "./${{ matrix.path }}"

0 comments on commit 11c29d5

Please sign in to comment.