Files
php-fpm-ext/.github/workflows/main.yml
K 6b7b1d5743
All checks were successful
Publish Docker image / docker (push) Successful in 2m28s
custom registry
2025-02-26 09:24:45 +01:00

40 lines
1.2 KiB
YAML

name: Publish Docker image
on:
push:
env:
IMAGE_TAG: ${{ vars.DOCKERREGISTRY_HOST }}/${{ github.repository }}:${{ 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. 🎉