Skip to content

Commit d9aff4d

Browse files
committed
docker build
1 parent c83fc38 commit d9aff4d

File tree

5 files changed

+15
-23
lines changed

5 files changed

+15
-23
lines changed

.github/workflows/docker-build.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: docker build and push
22

33
on:
44
push:
5-
tags:
6-
- 'v*'
5+
branches:
6+
- master
77

88
env:
99
CARGO_NET_GIT_FETCH_WITH_CLI: true
@@ -14,32 +14,24 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
18-
- name: Extract tag
19-
id: prep
20-
if: "startsWith(github.ref, 'refs/tags/v')"
21-
run: |
22-
echo ::set-output name=tags::ghcr.io/qini7-sese/ehbot:${GITHUB_REF#refs/tags/v}
17+
uses: actions/checkout@v4
2318
- name: Set up QEMU
24-
uses: docker/setup-qemu-action@v1
19+
uses: docker/setup-qemu-action@v3
2520
with:
2621
platforms: all
2722
- name: Set up Docker Buildx
2823
id: buildx
29-
uses: docker/setup-buildx-action@v1
24+
uses: docker/setup-buildx-action@v3
3025
- name: Login to GHCR
31-
uses: docker/login-action@v1
26+
uses: docker/login-action@v3
3227
with:
3328
registry: ghcr.io
34-
username: qini7-sese
29+
username: MSKNET
3530
password: ${{ secrets.GITHUB_TOKEN }}
36-
- name: Generate App Version
37-
run: echo VERSIONED_TAG=`git describe --tags --always` >> $GITHUB_ENV
3831
- name: Build docker image
3932
uses: docker/build-push-action@v2
4033
with:
4134
push: true
4235
platforms: linux/amd64,linux/arm64
4336
tags: |
44-
ghcr.io/qini7-sese/ehbot:latest
45-
ghcr.io/qini7-sese/ehbot:${{ env.VERSIONED_TAG }}
37+
ghcr.io/MSKNET/eh2telegraph:latest

bot/src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ pub(crate) static VERSION: &str = concat!(
1212
"Cargo Target: \t",
1313
env!("VERGEN_CARGO_TARGET_TRIPLE"),
1414
"\n",
15-
"Source code: \thttps://github.com/qini7-sese/eh2telegraph"
15+
"Source code: \thttps://github.com/People-11/eh2telegraph"
1616
);

config_example.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ base:
66
tokens:
77
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
88
author_name: Test Name
9-
author_url: https://github.com/qini7-sese/eh2telegraph
9+
author_url: https://github.com/People-11/eh2telegraph
1010

1111
proxy:
1212
endpoint: https://proxy.xxx.workers.dev/

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: "3"
22
services:
3-
ehbot:
4-
image: ghcr.io/qini7-sese/ehbot:latest
5-
container_name: ehbot
3+
eh2telegraph:
4+
image: ghcr.io/MSKNET/eh2telegraph:latest
5+
container_name: eh2telegraph
66
restart: always
77
network_mode: "host"
88
environment:
@@ -11,4 +11,4 @@ services:
1111
volumes:
1212
- "./config.yaml:/config.yaml:ro"
1313
logging:
14-
driver: journald
14+
driver: journald

eh2telegraph/src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn write_footer(content: &mut Vec<Node>, original_link: &str, next_page: Option<
273273
}
274274
content.push(np!(
275275
nt!("Generated by "),
276-
na!(@"https://github.com/qini7-sese/eh2telegraph", nt!("eh2telegraph"))
276+
na!(@"https://github.com/People-11/eh2telegraph", nt!("eh2telegraph"))
277277
));
278278
content.push(np!(
279279
nt!("Original link: "),

0 commit comments

Comments
 (0)