This repository was archived by the owner on Apr 10, 2024. It is now read-only.
implement --ignore-series-tag filter #45
Workflow file for this run
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: Publish Docker | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '[0-9].*' | |
jobs: | |
build-dist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- uses: frabert/[email protected] | |
id: str_replace | |
with: | |
pattern: '.+/(.+)' | |
string: ${{ github.ref }} | |
replace-with: '$1' | |
- uses: cschleiden/replace-tokens@v1 | |
with: | |
files: 'src/main/resources/version.properties' | |
env: | |
GIT_SHA: ${{ github.sha }} | |
GIT_BRANCH: ${{ github.ref }} | |
APP_VER: ${{ steps.str_replace.outputs.replaced }} | |
- uses: cschleiden/replace-tokens@v1 | |
with: | |
files: 'build.gradle' | |
env: | |
VERSION: ${{ steps.str_replace.outputs.replaced }} | |
- name: Build with Gradle | |
run: /bin/sh ./gradlew test shadowDistZip | |
- uses: actions/upload-artifact@v2-preview | |
with: | |
name: test-results | |
path: build/reports | |
- uses: actions/upload-artifact@v2-preview | |
with: | |
name: dist | |
path: build/distributions/*.zip | |
build-docker: | |
runs-on: ubuntu-latest | |
needs: build-dist | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/download-artifact@v1 | |
with: | |
name: dist | |
path: docker/root | |
- uses: elgohr/Publish-Docker-Github-Action@master | |
with: | |
name: slugger/embysweeper | |
username: ${{secrets.DKHUB_ID}} | |
password: ${{secrets.DKHUB_KEY}} | |
workdir: docker | |
tag_names: true |