Skip to content

Commit 967514d

Browse files
committed
Workflow for release
1 parent 7e63a15 commit 967514d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up JDK 11
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 11
17+
- name: Set env
18+
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF:10}
19+
- name: Build with Maven
20+
env:
21+
DOCKER_REGISTRY_URL: docker.io
22+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
23+
run: mvn compile jib:build -Djib.to.auth.username=projecteka -Djib.to.auth.password=${DOCKER_PASSWORD} -Dimage=projecteka/hiu-db-initializer:${RELEASE_VERSION}

0 commit comments

Comments
 (0)