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

BRAVO-666 - Create release artifact after creating the release #1

Merged
merged 27 commits into from
Jun 18, 2020
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b209a45
Tried another repository to fix missing dependency
jrgarlick Jun 8, 2020
bbc85a3
Setting artifact version
jrgarlick Jun 8, 2020
c2ae74a
Set build to only publish SNAPSHOT from develop branch
jrgarlick Jun 8, 2020
4b08aef
BRAVO-666 - Added release workflow
jrgarlick Jun 11, 2020
1264645
BRAVO-666 - Fixed typo
jrgarlick Jun 11, 2020
70b7d1d
BRAVO-666 - Cleaned up and removed conditional
jrgarlick Jun 11, 2020
6dc4540
BRAVO-666 - Trying another thing
jrgarlick Jun 11, 2020
4cf50a7
BRAVO-666 - Debugging this tag version thing
jrgarlick Jun 11, 2020
4c1106c
BRAVO-666 - Adding package remover on delete of release
jrgarlick Jun 11, 2020
d5bd616
BRAVO-666 - Executing release a little differently. Cleanup of cleanup
jrgarlick Jun 11, 2020
3bf5001
BRAVO-666 - Removed cleanup script
jrgarlick Jun 11, 2020
0796332
BRAVO-666 - Tiny tweak to publish from master branch
jrgarlick Jun 11, 2020
a178e59
BRAVO-666 - Added snyk monitor check to normal build
jrgarlick Jun 15, 2020
124ff03
BRAVO-666 - Trying to fix gradle/snyk issue
jrgarlick Jun 15, 2020
125d0d1
BRAVO-666 - Moved Snyk check to it's own action
jrgarlick Jun 15, 2020
0b8e90f
BRAVO-666 - Adding test phase to publish during release
jrgarlick Jun 15, 2020
746946e
BRAVO-666 - Renamed snyk check
jrgarlick Jun 15, 2020
bdbdfaf
BRAVO-666 - Changing the trigger to just PRs
jrgarlick Jun 15, 2020
ae29c3d
BRAVO-666 - Updating dependencies to newer versions
jrgarlick Jun 16, 2020
f8d2918
BRAVO-666 - Updated a couple jenkins dependencies
jrgarlick Jun 16, 2020
dea35cb
BRAVO-666 - Forced updated of two vulnerable transient dependencies
jrgarlick Jun 16, 2020
83a4774
BRAVO-666 - These changes didn't have any effect. Removing
jrgarlick Jun 16, 2020
44d01da
Create SECURITY.md
Jun 18, 2020
0a199c4
Update CHANGELOG.md
Jun 18, 2020
62be351
Update CHANGELOG.md
Jun 18, 2020
e7246ce
Update CHANGELOG.md
Jun 18, 2020
a9e4ca4
Merge pull request #2 from EliLillyCo/security-doc
Jun 18, 2020
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
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

name: CI
name: SNAPSHOT

on:
push:
branches: [ feature/* ]
branches: [ develop, feature/* ]
pull_request:
branches: [ master ]

Expand All @@ -26,6 +26,7 @@ jobs:
arguments: build

- name: Upload Build Artifacts
if: github.ref == 'refs/heads/develop'
jrgarlick marked this conversation as resolved.
Show resolved Hide resolved
uses: eskatos/gradle-command-action@v1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

name: RELEASE

on:
release:
types: [created]

jobs:
perform-release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF##*/})

- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 11

- name: Publish artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_VERSION: ${{ steps.get_version.outputs.VERSION }}
jrgarlick marked this conversation as resolved.
Show resolved Hide resolved
run: |
echo "New version: ${RELEASE_VERSION}"
echo "Github username: ${GITHUB_ACTOR}"
./gradlew -Pversion=${RELEASE_VERSION} publish
24 changes: 24 additions & 0 deletions .github/workflows/remove-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

name: REMOVE-PACKAGE

on:
release:
types: [deleted]

jobs:
remove-package:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF##*/})

- name: Remove Deleted Release Package
uses: actions/delete-package-versions@v1
with:
package-name: 'com.lilly.opensource.edat.jenkinsdsl'
package-version-ids: ${{ steps.get_version.outputs.VERSION }}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
/bin/
/.vscode/
/.groovy
/gradle.properties
.idea/
.externalToolBuilders/
/out
Expand Down
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ repositories {
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.3.RELEASE"
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=1.0.0-SNAPSHOT
jrgarlick marked this conversation as resolved.
Show resolved Hide resolved