File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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' }}
You can’t perform that action at this time.
0 commit comments