|
| 1 | + |
| 2 | +name: "deploy chocolatey from github 2025 CI workflow" |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ test ] |
| 7 | + schedule: |
| 8 | + - cron: '0 0 1 * *' ##execution of a task in the first minute of the month |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +jobs: |
| 13 | + |
| 14 | + |
| 15 | + windows-2025-pwsh-choco: |
| 16 | + name: "2025 choco packages" |
| 17 | + runs-on: windows-2025 |
| 18 | + steps: |
| 19 | + - name: Checkout |
| 20 | + uses: actions/checkout@v1 |
| 21 | + - name: "check if server is virtual" |
| 22 | + run: Systeminfo | findstr /i model |
| 23 | + - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 24 | + run: wmic OS get OSArchitecture |
| 25 | + - name: "osfingerprinting" |
| 26 | + run: systeminfo | more |
| 27 | + - name: "display all processes, executable path" |
| 28 | + run: wmic process list full |
| 29 | + - name: "list of running services" |
| 30 | + run: tasklist |
| 31 | + - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 32 | + run: tasklist /svc |
| 33 | + - name: "look for unusual services" |
| 34 | + run: net start |
| 35 | + - name: "query unusual services" |
| 36 | + run: sc query |
| 37 | + - name: "Install chocolatey from github - pwsh script" |
| 38 | + run: | |
| 39 | + iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Install_chocolatey.ps1')) |
| 40 | + choco |
| 41 | + choco upgrade chocolatey |
| 42 | + choco list --local-only |
| 43 | + shell: pwsh |
| 44 | + - name: "Install chocolatey packages from github - pwsh script windows 10" |
| 45 | + run: | |
| 46 | + iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Choco_Packages_Desktop_windows10.ps1')) |
| 47 | + choco list --local-only |
| 48 | + shell: pwsh |
| 49 | + - name: "Install chocolatey packages from github - pwsh script windows 11" |
| 50 | + run: | |
| 51 | + iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Choco_Packages_Desktop_windows11.ps1')) |
| 52 | + choco list --local-only |
| 53 | + shell: pwsh |
| 54 | + |
| 55 | + # windows-2022-pwsh-choco: |
| 56 | + # name: "2022 choco packages" |
| 57 | + # runs-on: windows-2022 |
| 58 | + # steps: |
| 59 | + # - name: Checkout |
| 60 | + # uses: actions/checkout@v1 |
| 61 | + # - name: "check if server is virtual" |
| 62 | + # run: Systeminfo | findstr /i model |
| 63 | + # - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 64 | + # run: wmic OS get OSArchitecture |
| 65 | + # - name: "osfingerprinting" |
| 66 | + # run: systeminfo | more |
| 67 | + # - name: "display all processes, executable path" |
| 68 | + # run: wmic process list full |
| 69 | + # - name: "list of running services" |
| 70 | + # run: tasklist |
| 71 | + # - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 72 | + # run: tasklist /svc |
| 73 | + # - name: "look for unusual services" |
| 74 | + # run: net start |
| 75 | + # - name: "query unusual services" |
| 76 | + # run: sc query |
| 77 | + # - name: "Install chocolatey from github - pwsh script" |
| 78 | + # run: | |
| 79 | + # iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Install_chocolatey.ps1')) |
| 80 | + # choco |
| 81 | + # choco upgrade chocolatey |
| 82 | + # choco list --local-only |
| 83 | + # shell: pwsh |
| 84 | + # - name: "Install chocolatey packages from github - pwsh script windows 10" |
| 85 | + # run: | |
| 86 | + # iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Choco_Packages_Desktop_windows10.ps1')) |
| 87 | + # choco list --local-only |
| 88 | + # shell: pwsh |
| 89 | + # - name: "Install chocolatey packages from github - pwsh script windows 11" |
| 90 | + # run: | |
| 91 | + # iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Choco_Packages_Desktop_windows11.ps1')) |
| 92 | + # choco list --local-only |
| 93 | + # shell: pwsh |
| 94 | + |
| 95 | + # windows-latest-pwsh-choco: |
| 96 | + # name: "2019 Datacenter windows-latest choco packages" |
| 97 | + # runs-on: windows-latest |
| 98 | + # steps: |
| 99 | + # - name: Checkout |
| 100 | + # uses: actions/checkout@v1 |
| 101 | + # - name: "check if server is virtual" |
| 102 | + # run: Systeminfo | findstr /i model |
| 103 | + # - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 104 | + # run: wmic OS get OSArchitecture |
| 105 | + # - name: "osfingerprinting" |
| 106 | + # run: systeminfo | more |
| 107 | + # - name: "display all processes, executable path" |
| 108 | + # run: wmic process list full |
| 109 | + # - name: "list of running services" |
| 110 | + # run: tasklist |
| 111 | + # - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 112 | + # run: tasklist /svc |
| 113 | + # - name: "look for unusual services" |
| 114 | + # run: net start |
| 115 | + # - name: "query unusual services" |
| 116 | + # run: sc query |
| 117 | + # - name: "Install chocolatey from github - pwsh script" |
| 118 | + # run: | |
| 119 | + # iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Install_chocolatey.ps1')) |
| 120 | + # choco |
| 121 | + # choco upgrade chocolatey |
| 122 | + # choco list --local-only |
| 123 | + # shell: pwsh |
| 124 | + |
| 125 | + |
| 126 | + # windows-2016-pwsh-choco: |
| 127 | + # name: "2016 Datacenter choco packages" |
| 128 | + # runs-on: windows-2016 |
| 129 | + # steps: |
| 130 | + # - name: Checkout |
| 131 | + # uses: actions/checkout@v1 |
| 132 | + # - name: "check if server is virtual" |
| 133 | + # run: Systeminfo | findstr /i model |
| 134 | + # - name: "check the PROCESSOR_ARCHITECTURE environment variable.64-bit systems will say AMD64 and 32-bit systems should say x86" |
| 135 | + # run: wmic OS get OSArchitecture |
| 136 | + # - name: "osfingerprinting" |
| 137 | + # run: systeminfo | more |
| 138 | + # - name: "display all processes, executable path" |
| 139 | + # run: wmic process list full |
| 140 | + # - name: "list of running services" |
| 141 | + # run: tasklist |
| 142 | + # - name: "list of all processes along with their corresponding PID, and services that are tied to them" |
| 143 | + # run: tasklist /svc |
| 144 | + # - name: "look for unusual services" |
| 145 | + # run: net start |
| 146 | + # - name: "query unusual services" |
| 147 | + # run: sc query |
| 148 | + # - name: "Install chocolatey from github - pwsh script" |
| 149 | + # run: | |
| 150 | + # iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/githubfoam/choco_githubactions/main/scripts/Install_chocolatey.ps1')) |
| 151 | + # choco |
| 152 | + # choco upgrade chocolatey |
| 153 | + # choco list --local-only |
| 154 | + # shell: pwsh |
| 155 | + |
0 commit comments