Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

ci(renovate): autoupdate github-actions #443

Merged
merged 2 commits into from
Jan 4, 2023
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
9 changes: 6 additions & 3 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
"ignoreTests": true,
"automerge": true,
},

{
"description": "Ignore frequent renovate updates",
"matchPackageNames": ["renovatebot/github-action"],
"matchUpdateTypes": ["patch"],
"enabled": false
},

{
"matchPackageNames": ["renovatebot/github-action"],
"matchUpdateTypes": ["minor"],
Expand All @@ -26,7 +24,12 @@
"ignoreTests": true,
"schedule": ["on Sunday"],
},

{
"description": "Update all github-actions by default",
"matchManagers": ["github-actions"],
"automergeType": "branch",
"automerge": true,
},
{
"matchManagers": ["git-submodules"],
"matchUpdateTypes": ["digest"],
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,27 @@ on:
workflow_dispatch:
push:

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true

jobs:
build:
name: MegaLinter
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Extract commands from markdown files
run: |
set -euxo pipefail
echo '#!/usr/bin/env bash' > README.sh
find . -name '*.md' -print0 | while IFS= read -r -d '' FILE ; do
sed -n "/^\`\`\`\(bash\|shell\).*/,/^\`\`\`$/p" "${FILE}" \
| \
sed \
-e 's/^```\(bash\|shell\).*//' \
-e '/^```$/d' \
>> README.sh
done
chmod a+x README.sh

- name: MegaLinter
uses: megalinter/[email protected]
Expand All @@ -29,4 +37,5 @@ jobs:
GITHUB_STATUS_REPORTER: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRINT_ALPACA: false
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch' }}
# Needed for scanning generated README.sh file
VALIDATE_ALL_CODEBASE: true
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
paths:
- ".github/renovate.json5"
schedule:
- cron: "3,13,23,33 3 * * 0"
- cron: "0 0,2,4 * * *"

env:
LOG_LEVEL: info
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ with Packer.

```bash
git clone --recurse-submodules https://github.com/ruzickap/packer-templates.git
cd packer-templates
cd packer-templates || exit
```

* Ubuntu:
Expand Down
2 changes: 1 addition & 1 deletion docs/GitLab_CI_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can also use the command directly when using already pre-configured server:
gitlab-runner register \
--non-interactive \
--tag-list packer-templates \
--registration-token {{ GITLAB_REGISTRATION_TOKEN }} \
--registration-token "{{ GITLAB_REGISTRATION_TOKEN }}" \
--url https://gitlab.com/ \
--executor shell
```
5 changes: 2 additions & 3 deletions templates/my_centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ apt install -y libvirt-bin vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
5 changes: 2 additions & 3 deletions templates/my_ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ apt install -y libvirt-bin vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/my_windows-10-enterprise-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -51,9 +51,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
5 changes: 2 additions & 3 deletions templates/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ apt install -y libvirt-bin vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/windows-10-enterprise-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -51,9 +51,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/windows-server-2012-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -52,9 +52,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/windows-server-2016-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -51,9 +51,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/windows-server-2019-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -51,9 +51,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
7 changes: 3 additions & 4 deletions templates/windows-server-2022-eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ web pages:
dnf remove vagrant

VAGRANT_LATEST_VERSION=$(curl -s https://checkpoint-api.hashicorp.com/v1/check/vagrant | jq -r -M '.current_version')
dnf install https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm
dnf install "https://releases.hashicorp.com/vagrant/${VAGRANT_LATEST_VERSION}/vagrant_${VAGRANT_LATEST_VERSION}_x86_64.rpm"

# virtualbox
# Details here: https://rpmfusion.org/Howto/VirtualBox
Expand All @@ -51,9 +51,8 @@ vagrant plugin install vagrant-libvirt
Install and connect to the box:

```bash
mkdir ${NAME}
cd ${NAME}
vagrant init ${VAGRANT_CLOUD_USER}/${NAME}
mkdir "${NAME}" && cd "${NAME}" || exit
vagrant init "${VAGRANT_CLOUD_USER}/${NAME}"
VAGRANT_DEFAULT_PROVIDER=libvirt vagrant up
# or
VAGRANT_DEFAULT_PROVIDER=virtualbox vagrant up
Expand Down
4 changes: 2 additions & 2 deletions tools/build_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ PACKER_IMAGES_OUTPUT_DIR="/var/tmp/packer-templates-images"
for PACKER_VAGRANT_PROVIDER in libvirt virtualbox; do
for BUILD in ubuntu-{20,18,16}.04-desktop-amd64 ubuntu-{20,18,16}.04-server-amd64 my_ubuntu-{20,18,16}.04-server-amd64 my_centos-7-x86_64 {my_,}windows-10-enterprise-x64-eval windows-server-{2022,2019,2016,2012_r2}-standard-x64-eval; do
echo "**** $(date)"
./build.sh ${BUILD}-${PACKER_VAGRANT_PROVIDER}
./build.sh "${BUILD}-${PACKER_VAGRANT_PROVIDER}"
done
done

./vagrant_init_destroy_boxes.sh ${PACKER_IMAGES_OUTPUT_DIR}/*.box
) 2>&1 | tee $LOGFILE
) 2>&1 | tee "${LOGFILE}"
2 changes: 1 addition & 1 deletion tools/test_remote_boxes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ VAGRANT_CLOUD_USER="peru"

for PACKER_VAGRANT_PROVIDER in libvirt virtualbox; do
for BOX in {my_,}windows-10-enterprise-x64-eval windows-server-{2019,2016,2012_r2}-standard-x64-eval; do
BOX_CURRENT_VERSION=$(curl -s https://vagrantcloud.com/api/v1/box/${VAGRANT_CLOUD_USER}/${BOX} | jq -r '.current_version.number')
BOX_CURRENT_VERSION=$(curl -s "https://vagrantcloud.com/api/v1/box/${VAGRANT_CLOUD_USER}/${BOX}" | jq -r '.current_version.number')
echo "*** ${VAGRANT_CLOUD_USER}/${BOX} | ${BOX_CURRENT_VERSION}"
wget -c "https://vagrantcloud.com/${VAGRANT_CLOUD_USER}/boxes/${BOX}/versions/${BOX_CURRENT_VERSION}/providers/${PACKER_VAGRANT_PROVIDER}.box" -O "${PACKER_IMAGES_OUTPUT_DIR}/${BOX}-${PACKER_VAGRANT_PROVIDER}.box"
done
Expand Down