Upgrade the version of Gradle shadow
plugin in print-modules
proj…
#46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set version | |
id: version | |
env: | |
VERSION: ${{ github.sha }} | |
run: | | |
echo ::set-output name=version::${VERSION} | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Cache Gradle packages | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Create scalardb test containers | |
run: ./gradlew docker -PdockerVersion=${{ steps.version.outputs.version }} -PgprUsername="${{ github.repository_owner }}" -PgprPassword="${{ secrets.CR_PAT }}" | |
working-directory: scalardb-test | |
- name: Create scalardl test containers | |
run: ./gradlew docker -PdockerVersion=${{ steps.version.outputs.version }} | |
working-directory: scalardl-test | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Push containers | |
run: | | |
docker push ghcr.io/scalar-labs/kelpie-test-scalardb:${{ steps.version.outputs.version }} | |
docker push ghcr.io/scalar-labs/kelpie-test-scalardl:${{ steps.version.outputs.version }} | |
- name: Cleanup Gradle cache | |
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. | |
# Restoring these files from a GitHub Actions cache might cause problems for future builds. | |
run: | | |
rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
rm -f ~/.gradle/caches/modules-2/gc.properties |