Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
environment: deploydocker
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: ${{ env.USER_GIT_OWNER }}/kernelci-core
ref: ${{ env.USER_GIT_BRANCH }}
Expand All @@ -55,7 +55,7 @@ jobs:
python3 -m pip install '.[dev]' --break-system-packages
sudo cp -R config /etc/kernelci/
- name: Cache apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.4
with:
packages: python3-pip git docker.io python3-docker
version: 1.0
Expand Down Expand Up @@ -124,21 +124,21 @@ jobs:
environment: deploydocker
steps:
- name: Checkout kernelci-core
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: ${{ env.USER_GIT_OWNER }}/kernelci-core
ref: ${{ env.USER_GIT_BRANCH }}
fetch-depth: 0
path: kernelci-core
- name: Checkout kernelci-pipeline
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: ${{ env.USER_GIT_OWNER }}/kernelci-pipeline
ref: ${{ env.USER_GIT_BRANCH }}
fetch-depth: 0
path: kernelci-pipeline
- name: Checkout kernelci-api
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: ${{ env.USER_GIT_OWNER }}/kernelci-api
ref: ${{ env.USER_GIT_BRANCH }}
Expand All @@ -151,7 +151,7 @@ jobs:
python3 -m pip install '.[dev]' --break-system-packages
sudo cp -R config /etc/kernelci/
- name: Cache apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
uses: awalsh128/cache-apt-pkgs-action@2c09a5e66da6c8016428a2172bd76e5e4f14bb17 # v1.5.4
with:
packages: python3-pip git docker.io python3-docker
version: 1.0
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
runs-on: ubuntu-slim
steps:
- name: Check out source code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.10'
cache: 'pip'
Expand All @@ -37,10 +37,10 @@ jobs:
name: Lint
steps:
- name: Check out source code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: "3.10"
cache: 'pip'
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
- name: Discord notification for start
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: 'Maestro production deploy started: "${{ inputs.message }}" by ${{ github.actor }}'
tag-core:
runs-on: ubuntu-latest
needs: discord-notify-start
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: kernelci/kernelci-core
ref: main
Expand All @@ -46,7 +46,7 @@ jobs:
needs: discord-notify-start
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: kernelci/kernelci-pipeline
ref: main
Expand All @@ -71,7 +71,7 @@ jobs:
needs: discord-notify-start
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: kernelci/kernelci-api
ref: main
Expand Down Expand Up @@ -103,12 +103,12 @@ jobs:
needs: call-docker-build
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: kernelci/kernelci-deploy
ref: main
- name: Set up kubectl
uses: azure/k8s-set-context@v4
uses: azure/k8s-set-context@ae59a723ba9abe7a9655538854a025448dbab4aa # v4
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}
Expand All @@ -119,7 +119,7 @@ jobs:
- name: Discord notification for end
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: 'Maestro production deploy completed.'
discord-notify-failure:
Expand All @@ -130,6 +130,6 @@ jobs:
- name: Notify failure to Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: '❌ Maestro production deploy failed.'
16 changes: 8 additions & 8 deletions .github/workflows/rootfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Discord notification for start
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: 'Rootfs build started: "${{ github.event.inputs.ROOTFS_NAME }}" for architecture "${{ github.event.inputs.ROOTFS_ARCH }}" by ${{ github.actor }}'

Expand All @@ -52,13 +52,13 @@ jobs:
environment: deploysecrets
steps:
- name: Checkout kernelci-deploy
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: kernelci/kernelci-deploy
path: kernelci-deploy
ref: 'main'
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: ${{ env.USER_GIT_REPO }}
ref: ${{ env.USER_GIT_BRANCH }}
Expand All @@ -80,7 +80,7 @@ jobs:
echo "ROOTFS_TIMECODE=$(date +%Y%m%d.0)" >> $GITHUB_ENV
- name: Copy files via scp to staging
if: ${{ env.ROOTFS_DESTINATION == 'staging' }}
uses: appleboy/scp-action@v1
uses: appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0
with:
host: ${{ secrets.STAGING_HOST }}
username: ${{ secrets.STAGING_USERNAME }}
Expand All @@ -91,7 +91,7 @@ jobs:
strip_components: 8
- name: Copy files via scp to production
if: ${{ env.ROOTFS_DESTINATION == 'production' }}
uses: appleboy/scp-action@v1
uses: appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0
with:
host: ${{ secrets.PRODUCTION_HOST }}
username: ${{ secrets.PRODUCTION_USERNAME }}
Expand All @@ -105,7 +105,7 @@ jobs:
echo "FINAL_MSG=Rootfs build completed: ${{ secrets.STAGING_URL }}/${{ env.ROOTFS_NAME }}/${{ env.ROOTFS_TIMECODE }}/${{ env.ROOTFS_ARCH }}" >> $GITHUB_ENV
cat $GITHUB_ENV|grep FINAL_MSG
- name: Slack notification
uses: rtCamp/action-slack-notify@v2
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2.3.3
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
SLACK_CHANNEL: 'bot'
Expand All @@ -122,7 +122,7 @@ jobs:
- name: Discord notification for end
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: 'Rootfs build completed: "${{ github.event.inputs.ROOTFS_NAME }}" for architecture "${{ github.event.inputs.ROOTFS_ARCH }}". Check the logs for more details.'

Expand All @@ -134,6 +134,6 @@ jobs:
- name: Notify failure to Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@d2594079a10f1d6739ee50a2471f0ca57418b554 # 0.4.0
with:
args: 'Rootfs build failed: "${{ github.event.inputs.ROOTFS_NAME }}" for architecture "${{ github.event.inputs.ROOTFS_ARCH }}". Check the logs for more details.'
2 changes: 1 addition & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
environment: deploydocker
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
repository: 'kernelci/kernelci-deploy'
ref: 'main'
Expand Down
Loading