Skip to content

Commit

Permalink
chore: fix GitHub Actions setting
Browse files Browse the repository at this point in the history
  • Loading branch information
GiJungPark committed Jul 5, 2024
1 parent 3c65ed9 commit dbf4ed7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
setup:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,12 +49,8 @@ jobs:
## gradle build
- name: Build with Gradle
run: ./gradlew build -x test

docker:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v4
-
## docker build & push
- name: Docker build & push to prod
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -79,8 +75,8 @@ jobs:
sudo docker pull ${{ secrets.DOCKER_REPO }}/ustory
sudo docker-compose up -d
sudo docker image prune -a -f
# sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKER_REPO }}/ustory
# sudo docker run --name github-actions-demo --rm -d -p 8080:8080 ${{ secrets.DOCKER_REPO }}/ustory


# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
Expand Down

0 comments on commit dbf4ed7

Please sign in to comment.