KakaoCloud handson workflow #1
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: KakaoCloud-handson | |
run-name: KakaoCloud handson workflow | |
on: [push] | |
jobs: | |
deploy-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Qemu | |
uses: docker/setup-qemu-action@v2 | |
- name: Login KakaoCloud | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ secrets.KAKAO_CLOUD_PROJECT_NAME }}.kr-central-1.kcr.dev | |
username: ${{ secrets.KAKAO_CLOUD_ACCESS_KEY }} | |
password: ${{ secrets.KAKAO_CLOUD_ACCESS_SECRET_KEY }} | |
- name: Set ENV | |
run: echo "TIME=$(date "+%Y-%m-%d-%H-%M")" >> $GITHUB_ENV | |
- name: Build and Push | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
tags: ${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}.kr-central-2.kcr.dev/${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}/kep-library:${{ env.TIME }} |