mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-08 04:00:43 +09:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16657635b3 | ||
|
|
fd541f19b0 | ||
|
|
f8121d9e5a | ||
|
|
b8da483c2e | ||
|
|
724a55ccf8 | ||
|
|
8223320a4c | ||
|
|
ea12760348 | ||
|
|
d678193671 |
@@ -0,0 +1,15 @@
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "chore(ci)"
|
||||
|
||||
- package-ecosystem: "docker"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
commit-message:
|
||||
prefix: "chore(docker)"
|
||||
@@ -0,0 +1,58 @@
|
||||
name: Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- "v*"
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
build-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v4
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: docker/login-action@v4
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Docker meta
|
||||
id: docker-meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: |
|
||||
ghcr.io/${{ github.repository }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=semver,pattern={{version}}
|
||||
type=semver,pattern={{major}}.{{minor}}
|
||||
type=semver,pattern={{major}}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v7
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: ${{ github.event_name != 'pull_request' }}
|
||||
tags: ${{ steps.docker-meta.outputs.tags }}
|
||||
labels: ${{ steps.docker-meta.outputs.labels }}
|
||||
@@ -17,11 +17,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup go
|
||||
uses: actions/setup-go@v7
|
||||
with:
|
||||
go-version: "^1"
|
||||
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v7
|
||||
with:
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
FROM ghcr.io/appleboy/drone-telegram:1.4.2
|
||||
FROM ghcr.io/appleboy/drone-telegram:1.5.0
|
||||
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
WORKDIR /github/workspace
|
||||
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@ inputs:
|
||||
description: 'unique identifier for the target message thread (topic) of the forum; for forum supergroups only'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
image: 'docker://ghcr.io/appleboy/telegram-action:1.1.0'
|
||||
|
||||
branding:
|
||||
icon: 'message-square'
|
||||
|
||||
@@ -6,4 +6,8 @@ export GITHUB="true"
|
||||
|
||||
[ -n "$*" ] && export TELEGRAM_MESSAGE="$*"
|
||||
|
||||
# The runner exports every declared input as an env var even when unset,
|
||||
# and drone-telegram rejects an empty string for this integer flag.
|
||||
[ -z "${INPUT_MESSAGE_THREAD_ID:-}" ] && unset INPUT_MESSAGE_THREAD_ID
|
||||
|
||||
/bin/drone-telegram
|
||||
|
||||
Reference in New Issue
Block a user