-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.2 KB
/
upgrade-version.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build and Test
on:
release:
types:
- published
push:
branches:
- '*/*'
jobs:
upgrade-version:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup Java 21
uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '21.0.3'
cache: 'maven'
cache-dependency-path: 'server/pom.xml'
- name: echo dockerhub username
run: echo ${{ secrets.DOCKERHUB_USERNAME }}
- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - name: Upgrade server version
# run: |
# ./set-version.sh --pom server/pom.xml
#
# - name: Commit and push new version
# uses: stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: "⬆️ Upgrade server version to $(./get-next-version.sh)"
#
# - name: Build docker image
# run: |
# docker build -t heavy-mock-http-server:$(./get-next-version.sh) server