pg-activity #4
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: Publish Docker image | |
on: | |
push: | |
env: | |
IMAGE_TAG: ${{ vars.DOCKERREGISTRY_HOST }}/odoo/odoo:${{ github.ref_name }} | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: set up docker buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: login to the docker hub | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ vars.DOCKERREGISTRY_HOST }} | |
username: ${{ vars.DOCKERREGISTRY_USERNAME }} | |
password: ${{ secrets.DOCKERREGISTRY_PASSWORD }} | |
- name: build and push docker image | |
uses: docker/build-push-action@v4 | |
env: | |
ACTIONS_RUNTIME_TOKEN: '' # https://gitea.com/gitea/act_runner/issues/119 | |
with: | |
context: . | |
no-cache: true | |
platforms: linux/amd64 | |
push: true | |
tags: ${{ env.IMAGE_TAG }} | |
- name: send telegram message | |
uses: https://github.com/appleboy/telegram-action@master | |
with: | |
to: ${{ vars.TELEGRAM_TO }} | |
token: ${{ secrets.TELEGRAM_TOKEN }} | |
message: | | |
[Docker] ${{ env.IMAGE_TAG }} has just been released. 🎉 |