generate artifacts with docker image
This commit is contained in:
51
.github/workflows/artifacts.yaml
vendored
51
.github/workflows/artifacts.yaml
vendored
@@ -4,14 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- release/*
|
|
||||||
- ci/*
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- release/*
|
|
||||||
- ci/*
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
publish-gcp:
|
publish-gcp:
|
||||||
@@ -25,41 +17,12 @@ jobs:
|
|||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 13
|
java-version: 13
|
||||||
|
- name: Upload to Docker
|
||||||
- name: Auth GCP
|
|
||||||
uses: google-github-actions/auth@v0
|
|
||||||
with:
|
|
||||||
credentials_json: ${{ secrets.GCP_ARTIFACTS_KEY }}
|
|
||||||
|
|
||||||
- name: Setup GCP
|
|
||||||
uses: google-github-actions/setup-gcloud@v0
|
|
||||||
|
|
||||||
# needed for GitVersion
|
|
||||||
- name: Fetch all history
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- name: Install GitVersion
|
|
||||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
|
||||||
with:
|
|
||||||
versionSpec: '5.x'
|
|
||||||
|
|
||||||
# step id used as reference for output values
|
|
||||||
- name: Use GitVersion
|
|
||||||
id: gitversion
|
|
||||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
|
||||||
|
|
||||||
- name: Get Time
|
|
||||||
id: time
|
|
||||||
uses: nanzm/get-time-action@v1.0
|
|
||||||
with:
|
|
||||||
timeZone: 0
|
|
||||||
format: 'YYYYMMDD-HHmm'
|
|
||||||
|
|
||||||
- name: Build zip
|
|
||||||
uses: eskatos/gradle-command-action@v1
|
uses: eskatos/gradle-command-action@v1
|
||||||
with:
|
with:
|
||||||
arguments: distZip
|
arguments: jibBuildTar
|
||||||
|
- name: Docker image
|
||||||
- name: Upload to GCP
|
uses: actions/upload-artifact@v3
|
||||||
run: |
|
with:
|
||||||
gsutil cp -n ./build/distributions/*.zip gs://artifacts.emerald.cash/builds/dshackle/${{ steps.gitversion.outputs.commitDate }}/${{ steps.time.outputs.time }}-${{ steps.gitversion.outputs.shortSha }}/
|
name: dshackle-image
|
||||||
|
path: build/jib-image.tar
|
||||||
Reference in New Issue
Block a user