Skip to content

Commit

Permalink
Merge pull request #11 from tmpMeM/main
Browse files Browse the repository at this point in the history
v0.1.3 debug
  • Loading branch information
dbidib authored Aug 9, 2024
2 parents 8149da0 + 7330f34 commit 6cad34a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/docker-latest_beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docker-latest-annona_client
on:
workflow_dispatch: #github页面手动触发
push:
branches: [ "beta*" ]
env:
IMAGE_NAME: annona_client #这是您的镜像名

jobs:
push-docker-hub:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- uses: actions/checkout@v3
- name: Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build && Push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile_beta
push: true
build-args: |
TD_COMMIT=d7203eb
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.IMAGE_NAME }}:beta
1 change: 0 additions & 1 deletion .github/workflows/docker-latest_tdlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
workflow_dispatch: #github页面手动触发
push:
branches: [ "tdlib*" ]

env:
IMAGE_NAME: annona_tdlib #这是您的镜像名

Expand Down
28 changes: 28 additions & 0 deletions Dockerfile_beta
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM annona/annona_tdlib:latest
COPY . /src

RUN go build \
-a \
-trimpath \
-o annona_client \
-ldflags "-s -w -buildid=" \
"./cmd/annona_client" && \
ls -lah


FROM alpine:3.18
#ENV TZ Asia/Shanghai
RUN apk upgrade --no-cache && \
apk add --no-cache \
ca-certificates \
libstdc++ \
tzdata \
musl-locales musl-locales-lang
ENV LANG en_US.UTF-8
ENV TZ UTC
WORKDIR /app

COPY --from=go-builder /src/annona_client .

ENTRYPOINT ["./annona_client"]
#CMD ["./annona_client"]

0 comments on commit 6cad34a

Please sign in to comment.