From 802d1b98f90e9001d834f4ff9d0bec2bb4d6328f Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 14 Nov 2024 02:23:41 +0000 Subject: [PATCH 1/6] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/app.py b/app/app.py index 7a084da..5986148 100644 --- a/app/app.py +++ b/app/app.py @@ -1,3 +1,4 @@ +#이것은 작업 테스트! from flask import Flask app = Flask(__name__) From 5798d1204c4e998fa4b32f0613c258c0fbc1486e Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 14 Nov 2024 02:55:41 +0000 Subject: [PATCH 2/6] =?UTF-8?q?2=EC=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 5986148..93eabf6 100644 --- a/app/app.py +++ b/app/app.py @@ -1,4 +1,4 @@ -#이것은 작업 테스트! +#이것은 작업 테스트!! from flask import Flask app = Flask(__name__) From 075f7c2e9bda1d766e8bbae9e19419231cef4b0d Mon Sep 17 00:00:00 2001 From: LewisJLee <161719835+LewisJLee@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:20:04 +0900 Subject: [PATCH 3/6] Update ci-cd.yml --- .github/workflows/ci-cd.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 891ddfc..a0d64a3 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -31,3 +31,16 @@ jobs: docker build -t flask-app:latest . # Optional: Add additional steps to push the Docker image to a registry like Docker Hub + - name: Log in to Docker Hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + push: true + tags: lewisjlee/flask-app-github-action-test:${{ env.CURRENT_TIME }} From 5c6ff0907dc89dc249f263a0ffc33ab2a8d4432c Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Thu, 14 Nov 2024 03:23:59 +0000 Subject: [PATCH 4/6] =?UTF-8?q?3=EC=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/app.py b/app/app.py index 93eabf6..d39a1e1 100644 --- a/app/app.py +++ b/app/app.py @@ -1,4 +1,4 @@ -#이것은 작업 테스트!! +#이것은 작업 테스트!!! from flask import Flask app = Flask(__name__) From 5f095335d6b8049f2291365f68f3e3d83fd7f6a9 Mon Sep 17 00:00:00 2001 From: LewisJLee Date: Thu, 14 Nov 2024 03:34:37 +0000 Subject: [PATCH 5/6] =?UTF-8?q?4=EC=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci-cd.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index a0d64a3..343e4b8 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -29,6 +29,9 @@ jobs: - name: Build Docker image run: | docker build -t flask-app:latest . + + - name: Get current time + run: echo "CURRENT_TIME=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_ENV # Optional: Add additional steps to push the Docker image to a registry like Docker Hub - name: Log in to Docker Hub From daed0ec73648780eddbbf243bb7e0647f1ac27f5 Mon Sep 17 00:00:00 2001 From: LewisJLee Date: Thu, 14 Nov 2024 04:19:43 +0000 Subject: [PATCH 6/6] =?UTF-8?q?=EC=8B=A0=EA=B7=9C=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=20=ED=85=8C=EC=8A=A4=ED=8A=B8!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_app.py b/tests/test_app.py index 8cdc7c7..d559f21 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -1,3 +1,4 @@ +#테스트! import unittest from app.app import app