Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 21b64d0

Browse files
committed
Automated version bump during release #6345
1 parent 798ad88 commit 21b64d0

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,38 @@ jobs:
117117
prerelease: ${{ needs.prepare.outputs.prerelease }}
118118
replacesArtifacts: true
119119
artifacts: "bin/docker-setup,bin/docker-setup.sha256"
120+
121+
build:
122+
name: Build
123+
needs:
124+
- release
125+
runs-on: ubuntu-20.04
126+
steps:
127+
128+
- name: Checkout code
129+
uses: actions/checkout@v3
130+
131+
- name: Install docker-setup
132+
run: |
133+
curl \
134+
--silent \
135+
--location \
136+
--url https://github.com/nicholasdille/docker-setup/releases/latest/download/docker-setup
137+
--output docker-setup
138+
chmod +x docker-setup
139+
140+
- name: Update manifest
141+
run: |
142+
mkdir -p helper helper/var/cache helper/var/lib
143+
./docker-setup --prefix "$PWD/helper" update
144+
./docker-setup --prefix "$PWD/helper" install yq
145+
VERSION=${{ needs.prepare.outputs.version }} \
146+
helper/usr/local/bin/yq eval --inplace '.version = env(VERSION)' tools/docker-setup/manifest.yaml
147+
148+
- name: Commit updated manifest
149+
uses: stefanzweifel/git-auto-commit-action@v4
150+
with:
151+
branch: main
152+
create_branch: false
153+
file_pattern: tools/docker-setup/manifest.yaml
154+
commit_message: "Version bump for docker-setup"

tools/docker-setup/manifest.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@ tags:
1010
- type/cli
1111
homepage: https://github.com/nicholasdille/docker-setup
1212
description: Install, configure and update container tools
13-
renovate:
14-
datasource: github-releases
15-
package: nicholasdille/docker-setup
16-
extractVersion: ^v(?<version>.+?)$
13+
# No renovate configuration for this repository
14+
# The container image is rebuild during a CLI release

0 commit comments

Comments
 (0)