Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2024.04.02-SNAPSHOT #141

Closed
wants to merge 3 commits into from
Closed
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
21 changes: 21 additions & 0 deletions .github/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

REPO="diffblue/cover-github-action"
BRANCH_NAME="Release/$1"
PR_TITLE="Release $1"
PR_BODY="Update Diffblue Cover to $1"

git checkout -b "$BRANCH_NAME"

sed -i "s/cli:[0-9]\{4\}\.[0-9]\{2\}\.[0-9]\{2\}-jdk/cli:$1-jdk/g" Dockerfile

./build.sh
git add Dockerfile
git add */Dockerfile
git commit -m "Bump docker image to $1"

git push origin "$BRANCH_NAME"

curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d '{"title": "'"$PR_TITLE"'", "body": "'"$PR_BODY"'", "head": "'"$BRANCH_NAME"'", "base": "main"}' \
"https://api.github.com/repos/$REPO/pulls"
24 changes: 24 additions & 0 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Create release
if: contains(github.event.head_commit.message, '/Release/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION_NUMBER=$(echo "${{github.event.head_commit.message}}" | sed -n 's/.*Release\/\([0-9]\{4\}\.[0-9]\{2\}\.[0-9]\{2\}\).*/\1/p')
if [ -n "$VERSION_NUMBER" ]; then
gh release create "v$VERSION_NUMBER" --repo="$GITHUB_REPOSITORY" --title="v$VERSION_NUMBER" --generate-notes
else
echo "Could not get version number from commit name: ${{github.event.head_commit.message}}"
exit 1
fi
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default to using the latest version of Diffblue Cover on JDK17
# Additional images are available for specific Diffblue Cover
# versions and JDK versions.
FROM diffblue/cover-cli:2024.04.01-jdk17
FROM diffblue/cover-cli:2024.04.02-SNAPSHOT-jdk17

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion jdk11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default to using the latest version of Diffblue Cover on JDK11
# Additional images are available for specific Diffblue Cover
# versions and JDK versions.
FROM diffblue/cover-cli:2024.04.01-jdk11
FROM diffblue/cover-cli:2024.04.02-SNAPSHOT-jdk11

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion jdk17/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default to using the latest version of Diffblue Cover on JDK17
# Additional images are available for specific Diffblue Cover
# versions and JDK versions.
FROM diffblue/cover-cli:2024.04.01-jdk17
FROM diffblue/cover-cli:2024.04.02-SNAPSHOT-jdk17

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion jdk21/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default to using the latest version of Diffblue Cover on JDK21
# Additional images are available for specific Diffblue Cover
# versions and JDK versions.
FROM diffblue/cover-cli:2024.04.01-jdk21
FROM diffblue/cover-cli:2024.04.02-SNAPSHOT-jdk21

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion jdk8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Default to using the latest version of Diffblue Cover on JDK8
# Additional images are available for specific Diffblue Cover
# versions and JDK versions.
FROM diffblue/cover-cli:2024.04.01-jdk8
FROM diffblue/cover-cli:2024.04.02-SNAPSHOT-jdk8

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh
Expand Down
Loading