From c4b381345d178bfb15ba95c7f22f7ccb6d570015 Mon Sep 17 00:00:00 2001 From: ssojungg Date: Thu, 18 Jan 2024 04:58:08 +0900 Subject: [PATCH] =?UTF-8?q?ci=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 5 +++++ docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a829206..c62cc2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,3 +41,8 @@ jobs: cache: "npm" - run: npm ci - run: npm run build --if-present + - name: Docker build and push + run: | + docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + docker build --platform linux/amd64 -t your-dockerhub-username/your-repo-name:${GITHUB_SHA::7} . + docker push your-dockerhub-username/your-repo-name:${GITHUB_SHA::7} diff --git a/docker-compose.yml b/docker-compose.yml index 8ecacf0..7b6238e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -82,7 +82,7 @@ services: restart: always container_name: grafana ports: - - "3000:3000" + - "3005:3005" depends_on: - prometheus volumes: