Skip to content

Commit

Permalink
fix : script 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
KoSeonJe committed Aug 19, 2024
1 parent 10483c2 commit 9230422
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/dev-server-integrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,17 @@ jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'

- name: Check Out Repository
uses: actions/checkout@v4

- name: Check Docker Installation
run: |
docker --version
docker info
- name: Start Docker service
run: sudo service docker start

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
Expand All @@ -32,17 +34,8 @@ jobs:
with:
registry-type: public

- name: Grant Docker socket permissions
run: sudo chmod 666 /var/run/docker.sock

- name: Setup TestContainers properties
run: |
mkdir -p ~/.testcontainers
cp src/test/resources/testcontainers.properties ~/.testcontainers/testcontainers.properties
- name: Build, tag, and push docker image to Amazon ECR Public
env:
TESTCONTAINERS_HOST_OVERRIDE: host.docker.internal
REGISTRY: ${{ steps.login-ecr-public.outputs.registry }}
REGISTRY_ALIAS: ${{ secrets.DEV_ECR_REGISTRY_ALIAS }}
REPOSITORY: dev-ecr
Expand All @@ -54,4 +47,4 @@ jobs:
echo "::set-output name=image::$REGISTRY/$REGISTRY_ALIAS/$REPOSITORY:$IMAGE_TAG"
- name: Logout of Amazon ECR
run: docker logout ${{ env.ECR_REGISTRY }}
run: docker logout ${{ env.ECR_REGISTRY }}

0 comments on commit 9230422

Please sign in to comment.