Merge pull request #240 from Team-TIFY/dev #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build & Deploy TIFY | |
on: | |
push: | |
branches: [deploy] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@master | |
- name: Get the version | |
id: get_version | |
run: | | |
RELEASE_VERSION_WITHOUT_V="$(cut -d'v' -f2 <<< ${GITHUB_REF#refs/*/})" | |
echo ::set-output name=VERSION::$RELEASE_VERSION_WITHOUT_V | |
# - name: Create Release | |
# uses: ncipollo/release-action@v1 | |
# with: | |
# tag: ${{ steps.tag_version.outputs.new_tag }} | |
# name: TIFY-${{ steps.tag_version.outputs.new_tag }} | |
# body: ${{ steps.tag_version.outputs.changelog }} | |
# 도커 빌드 관련 셋업 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
# 내 도커허브 로그인 | |
- name: Login to DockerHub | |
uses: docker/#-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# 도커이미지 빌드하고 허브로 푸쉬 | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: ./dockerfile | |
platforms: linux/amd64 | |
push: true | |
tags: eugene028/tify-client:latest |