Skip to content

Commit 65f9030

Browse files
committed
Add release workflow actions
1 parent ac843db commit 65f9030

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
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/gateway-db-initializer:${RELEASE_VERSION}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.DS_Store
1+
.DS_Store
22
.idea/
3-
*.iml
3+
*.iml
44
target

0 commit comments

Comments
 (0)