Skip to content

Commit

Permalink
Merge pull request #280 from lae/feature/dependabot
Browse files Browse the repository at this point in the history
CI updates
  • Loading branch information
lae authored Nov 14, 2024
2 parents a5a1742 + 37ec3ea commit cf00703
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
version: 2
updates:
- package-ecosystem: github-actions
directory: /.github/
schedule:
interval: weekly
groups:
actions-minor:
update-types:
- minor
- patch
2 changes: 1 addition & 1 deletion .github/workflows/amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Amplify Runner
uses: amplify-security/runner-action@v0.1.0
uses: amplify-security/runner-action@926f003f3c9695a93cbc4e2f1e64eb784dcacbfc # v0.2.0
31 changes: 28 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ name: CI
pull_request: {}
push:
branches: ["main"]
workflow_dispatch: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
Expand All @@ -18,23 +19,46 @@ permissions:
contents: read

jobs:
changes:
runs-on: ubuntu-latest
outputs:
role: ${{ steps.filter.outputs.role }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
base: ${{ github.ref }}
filters: |
role:
- 'tasks/**'
- 'handlers/**'
- 'defaults/**'
- 'vars/**'
- 'files/**'
- 'library/**'
- 'module_utils/**'
- 'Vagrantfile'
vagrant-deploy:
needs: ["changes"]
if: ${{ needs.changes.outputs.role == 'true' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: sudo apt install nfs-kernel-server
- run: sudo pipx inject ansible-core jmespath netaddr
- run: ansible-galaxy install geerlingguy.ntp
# yamllint disable rule:line-length
- name: setup vagrant
run: |
# Copyright The containerd Authors
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#
# http://www.apache.org/licenses/LICENSE-2.0
#
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Expand All @@ -50,6 +74,7 @@ jobs:
sudo apt-get build-dep -y vagrant ruby-libvirt
sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
vagrant plugin install vagrant-libvirt
# yamllint enable rule:line-length
- run: >
sudo -E -u ${USER}
ANSIBLE_STDOUT_CALLBACK=debug
Expand Down

0 comments on commit cf00703

Please sign in to comment.