-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (32 loc) · 1.26 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Build
env:
MAVEN_OPTS: -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 -Dmaven.wagon.http.retryHandler.count=3
run: mvn -B install --file pom.xml
- name: Push container images
env:
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION=${GITHUB_REF:11}
echo $VERSION
echo $REGISTRY_PASSWORD | docker login ghcr.io -u $REGISTRY_USER --password-stdin
mvn -B package --file pom.xml -Pcontainer -DskipTests
docker push ghcr.io/oracle/coherence-micronaut-sockshop-carts:$VERSION
docker push ghcr.io/oracle/coherence-micronaut-sockshop-catalog:$VERSION
docker push ghcr.io/oracle/coherence-micronaut-sockshop-orders:$VERSION
docker push ghcr.io/oracle/coherence-micronaut-sockshop-payment:$VERSION
docker push ghcr.io/oracle/coherence-micronaut-sockshop-shipping:$VERSION
docker push ghcr.io/oracle/coherence-micronaut-sockshop-users:$VERSION