]> git.openstreetmap.org Git - chef.git/blobdiff - .github/workflows/test-kitchen.yml
GHA explicitly login to GHCR
[chef.git] / .github / workflows / test-kitchen.yml
index 2469ab522bc67dadbf4cca6e9604e29e39610bab..fd51dbced54bbbd6ef019e8469afed223e59cc0d 100644 (file)
@@ -3,6 +3,7 @@ name: Test Kitchen
 on:
   - push
   - pull_request
+  - workflow_dispatch
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
@@ -12,6 +13,8 @@ jobs:
   kitchen:
     name: Test Kitchen
     runs-on: ubuntu-22.04
+    permissions:
+      packages: read
     strategy:
       matrix:
         suite:
@@ -34,11 +37,9 @@ jobs:
           - dmca
           - dns
           - docker
-          - donate
           - elasticsearch
           - exim
           - fail2ban
-          - forum
           - foundation-board
           - foundation-dwg
           - foundation-mwg
@@ -54,7 +55,7 @@ jobs:
           - gps-tile
           - hardware
           - hot
-          - incron
+          - ideditor
           - irc
           - kibana
           - letsencrypt
@@ -96,7 +97,6 @@ jobs:
           - snmpd
           - spamassassin
           - ssl
-          - stateofthemap
           - stateofthemap-container
           - stateofthemap-wordpress
           - subversion
@@ -128,6 +128,12 @@ jobs:
             os: ubuntu-2204
       fail-fast: false
     steps:
+    - name: Login to GitHub Container Registry
+      uses: docker/login-action@v2
+      with:
+        registry: ghcr.io
+        username: ${{ github.actor }}
+        password: ${{ secrets.GITHUB_TOKEN }}
     - name: Check out code
       uses: actions/checkout@v3
     - name: Setup ruby