Skip to content

Commit

Permalink
chore: Modified the Docker image tag in cr_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkweon17 committed Feb 14, 2024
1 parent 18a7b93 commit 3cd3cfb
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/cr_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ jobs:
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:$(date "+%Y-%m-%d-%H-%M-%S")
- name: Set ENV and Build/Push
run: |
echo "TIME=$(date '+%Y-%m-%d-%H-%M-%S')" >> $GITHUB_ENV
docker build -t ${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}.kr-central-2.kcr.dev/${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}/kep-library:${{ env.TIME }} .
docker push ${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}.kr-central-2.kcr.dev/${{ secrets.KAKAO_CLOUD_REPOSITORY_NAME }}/kep-library:${{ env.TIME }}

0 comments on commit 3cd3cfb

Please sign in to comment.