Skip to content

Commit

Permalink
Merge pull request #47 from pknu-wap/Zepelown-patch-1
Browse files Browse the repository at this point in the history
feat: GihubActions Docker 빌드 추가
  • Loading branch information
Zepelown authored Dec 2, 2024
2 parents f36b15a + 7d9bdcb commit 133f2d4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Docker Image CI

on:
push:
branches: [ "ci/cd" ]
pull_request:
branches: [ "ci/cd" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- name: Build with Gradle
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1
with:
arguments: clean build -x test

# Docker build
- name: Docker build
run: |
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_PASSWORD }}
docker build -t seongwonyoon/wabi .
docker tag wabi seongwonyoon/wabi:${GITHUB_SHA::7}
docker push seongwonyoon/wabi:${GITHUB_SHA::7}

0 comments on commit 133f2d4

Please sign in to comment.