Skip to content

Commit

Permalink
Fix undefined used var
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaweedbrainCY committed Jul 6, 2024
1 parent 58ca37a commit 568be00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
tags: [ '*.*' ]

env:
DOCKER_IMAGE_NAME: "galera-healthcheck"
DOCKER_IMAGE_NAME: "galera_cluster_healthcheck"
jobs:
build-and-publish-image:
name: Build and Publish Docker image
Expand All @@ -14,7 +14,9 @@ jobs:
- uses: actions/checkout@v3
- name: Build
working-directory: ./app
run: docker build -t $DOCKER_IMAGE_NAME:latest -t $DOCKER_IMAGE_NAME:$current_version .
run: |
current_version=$(echo ${{ github.ref_name }} | sed 's/\([0-9]*\.[0-9]*\).*$/\1/')
docker build -t $DOCKER_IMAGE_NAME:latest -t $DOCKER_IMAGE_NAME:$current_version .
- name: Login to GitHub Container Registry
run: echo ${{ secrets.TOKEN }} | docker login ghcr.io -u ${{ secrets.USERNAME }} --password-stdin
- name: Push Docker image to GitHub Container Registry
Expand Down

0 comments on commit 568be00

Please sign in to comment.