Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
varunratnakar committed Jan 4, 2023
1 parent 14c9fb1 commit 3456951
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Java CI with Maven
on: [push, pull_request]
env:
IMAGE_NAME: wings
#variables related with the repository
REPOSITORY_MAIN_BRANCH: "master"
#variables related with the docker imager registry
DOCKER_IMAGE_REPOSITORY: ikcap
DOCKER_IMAGE_NAME: wings
Expand Down Expand Up @@ -54,11 +52,10 @@ jobs:
echo "DOCKER_TAG=${GITHUB_SHA}" >> $GITHUB_ENV
- name: Create environment variable with the version id
run: |
IMAGE_ID=ikcap/wings
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
[ "$VERSION" == "master" ] && VERSION=latest
echo "WINGS_VERSION=${WINGS_VERSION}" >> $GITHUB_ENV
echo "WINGS_VERSION=${VERSION}" >> $GITHUB_ENV
- name: Expose the commit id
id: exposeValue
run: |
Expand Down

0 comments on commit 3456951

Please sign in to comment.