File tree Expand file tree Collapse file tree 3 files changed +87
-0
lines changed Expand file tree Collapse file tree 3 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Gradle Build
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+ with :
13+ fetch-depth : 0
14+ - name : Get Fetch Tags
15+ run : git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin
16+ if : " !contains(github.ref, 'refs/tags')"
17+ - name : Set up JDK 1.8
18+ uses : actions/setup-java@v1
19+ with :
20+ java-version : 1.8
21+ - name : Grant execute permission for gradlew
22+ run : chmod +x gradlew
23+ - name : Build with Gradle
24+ run : ./gradlew build
25+ - name : Get Release Version
26+ id : get_version
27+ run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION
28+ - name : Upload artifact zip
29+ 30+ with :
31+ # Artifact name
32+ name : aws-ec2-ice-node-execution-${{ steps.get_version.outputs.VERSION }}
33+ # Directory containing files to upload
34+ path : build/libs/aws-ec2-ice-node-execution-${{ steps.get_version.outputs.VERSION }}.zip
Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ # Sequence of patterns matched against refs/tags
4+ tags :
5+ - ' *' # Push events to matching v*, i.e. v1.0, v20.15.10
6+
7+ name : Create Release
8+
9+ jobs :
10+ build :
11+ name : Upload Release Asset
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v2
16+ with :
17+ fetch-depth : 0
18+ - name : set up JDK 1.8
19+ uses : actions/setup-java@v1
20+ with :
21+ java-version : 1.8
22+ - name : Build with Gradle
23+ run : ./gradlew build
24+ - name : Get Release Version
25+ id : get_version
26+ run : VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION
27+ - name : Create Release
28+ id : create_release
29+ 30+ env :
31+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ with :
33+ tag_name : ${{ github.ref }}
34+ release_name : Release ${{ steps.get_version.outputs.VERSION }}
35+ draft : false
36+ prerelease : false
37+ - name : Upload Release Zip
38+ id : upload-release-asset
39+ uses : actions/upload-release-asset@v1
40+ env :
41+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42+ with :
43+ upload_url : ${{ steps.create_release.outputs.upload_url }}
44+ asset_path : build/libs/aws-ec2-ice-node-execution-${{ steps.get_version.outputs.VERSION }}.zip
45+ asset_name : aws-ec2-ice-node-execution-${{ steps.get_version.outputs.VERSION }}.zip
46+ asset_content_type : application/octet-stream
47+
Original file line number Diff line number Diff line change 1+ FROM rundeck:latest
2+ USER root
3+ RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
4+ unzip awscliv2.zip && \
5+ ./aws/install
6+ USER rundeck
You can’t perform that action at this time.
0 commit comments