Skip to content

Commit

Permalink
Fix 2 Compute version
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Oct 2, 2024
1 parent fef1b11 commit 972cd6e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,10 @@ jobs:

- name: Compute version
id: compute_version
run: echo "BUILD_VERSION=$(gradle version | grep Version | awk '{ print $2 }')" >> $GITHUB_OUTPUT
- name: Get version
env:
SELECTED_VERSION: ${{ steps.compute_version.outputs.BUILD_VERSION }}
run: echo "The selected color is $SELECTED_VERSION"

run: echo "BUILD_VERSION=$(gradle version | grep Version | awk '{ print $2 }')" >> $GITHUB_ENV
- name: Login to Docker Hub
run: docker login -u $DOCKER_USER -p ${{ secrets.DOCKER_PASSWORD }}
- name: Build and tag the Docker image
run: |
docker build -t $DOCKER_USER/$DOCKER_IMAGE:latest .
run: docker build -t $DOCKER_USER/$DOCKER_IMAGE:${{ env.BUILD_VERSION }} -t $DOCKER_USER/$DOCKER_IMAGE:latest .
- name: Push the Docker image
run: docker push $DOCKER_USER/$DOCKER_IMAGE --all-tags

0 comments on commit 972cd6e

Please sign in to comment.