Skip to content

Commit

Permalink
fix: docker image name lower case
Browse files Browse the repository at this point in the history
  • Loading branch information
김교휘 authored and 김교휘 committed May 20, 2024
1 parent 6be0f30 commit 452630a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cogo_cicd_gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: ./gradlew clean bootJar

- name: Docker image build
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/cogoServer .
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/cogoserver .

- name: Docker login
uses: docker/login-action@v2
Expand All @@ -44,14 +44,14 @@ jobs:
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Docker Hub push
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/cogoServer
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/cogoserver

run-docker-image-on-ec2:
needs: build-docker-image
runs-on: self-hosted
steps:
- name: Docker pull
run: sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/cogoServer
run: sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/cogoserver

- name: Docker stop container
run: sudo docker stop $(sudo docker ps -q) 2>/dev/null || true
Expand Down

0 comments on commit 452630a

Please sign in to comment.