forked from iris-connect/iris-client
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.24 KB
/
test.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
name: Test Workflow
on: [push]
defaults:
run:
shell: bash
jobs:
testdocker:
runs-on: ubuntu-20.04
steps:
# - name: Checkout code
# uses: actions/[email protected]
# - name: Cache local Maven repository
# uses: actions/[email protected]
# with:
# path: ~/.m2/repository
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
# restore-keys: |
# ${{ runner.os }}-maven-
- name: Get version from GITHUB_REF
id: get_version
run: |
echo $GITHUB_REF
ORG=tboegner
REPO=iris-client-bff
TAG=1
curl -X "GET" https://hub.docker.com/v2/repositories/$ORG/$REPO/tags/1
echo ${{ github.event_name }}
# VERSION=edge
# if [[ $GITHUB_REF == refs/tags/* ]]; then
# VERSION=${GITHUB_REF#refs/tags/}
# elif [[ $GITHUB_REF == refs/heads/* ]]; then
# VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
# elif [[ $GITHUB_REF == refs/pull/* ]]; then
# VERSION=pr-${{ github.event.number }}
# fi
# echo ::set-output name=version::${VERSION}
# DOCKER_VER=$(docker --version)
# echo $DOCKER_VER