diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..02af7b8 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,30 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build-and-push-image: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + push: true + tags: suhyen/msa-front:latest diff --git a/Dockerfile b/Dockerfile index 14e984a..ba61bb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,4 +3,4 @@ WORKDIR /usr/src/app COPY package*.json ./ RUN npm install --only=production COPY ./src ./src -CMD npm start +CMD expo start --tunnel diff --git a/README.md b/README.md index 8debe90..85a6a78 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# msa-front \ No newline at end of file +# msa-front