From d7ab503144653b698624f4f4b7824c9d298a646d Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 18 Jul 2022 15:25:53 +0700 Subject: [PATCH 1/2] Create docker-image.yml --- .github/workflows/docker-image.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..366201c --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,18 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag ghcr.io/yuzuzensai/yumi:$(date +%s) \ No newline at end of file From 4dc3a1aaddfe72d0bee9ca1a19c1e9f8d175a627 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Mon, 18 Jul 2022 15:26:48 +0700 Subject: [PATCH 2/2] Update docker-image.yml --- .github/workflows/docker-image.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 366201c..fb716f5 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -2,9 +2,9 @@ name: Docker Image CI on: push: - branches: [ "main" ] + #branches: [ "main" ] pull_request: - branches: [ "main" ] + #branches: [ "main" ] jobs: