Skip to content

Commit bc85e9a

Browse files
authored
Merge pull request #798 from dev-hato/develop
リリース
2 parents b408184 + e4b5f49 commit bc85e9a

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/pr-docker-hato-bot.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ jobs:
3838
env:
3939
HEAD_REF: ${{github.head_ref}}
4040
if: ${{ github.event_name == 'pull_request' }}
41-
- run: |
42-
echo 'TAG_NAME=${{ github.event.release.tag_name }}' >> "$GITHUB_ENV"
43-
echo 'TAG_NAME=latest' >> "$GITHUB_ENV"
41+
- run: echo 'TAG_NAME=${{ github.event.release.tag_name }}' >> "$GITHUB_ENV"
4442
if: ${{ github.event_name == 'release' }}
4543
- name: Build docker image
4644
run: docker-compose build --build-arg BUILDKIT_INLINE_CACHE=1
@@ -70,3 +68,11 @@ jobs:
7068
docker-compose logs
7169
exit 1
7270
- run: docker-compose push
71+
- run: |
72+
for image in postgres hato-bot; do
73+
image_name="ghcr.io/dev-hato/hato-bot/${image}"
74+
latest_tag="${image_name}:latest"
75+
docker tag "${image_name}:${TAG_NAME}" "${latest_tag}"
76+
docker push "${latest_tag}"
77+
done
78+
if: ${{ github.event_name == 'release' }}

0 commit comments

Comments
 (0)