mirror of
https://github.com/PaiGramTeam/telegram-bot-api-build.git
synced 2024-11-21 22:48:07 +00:00
Update alpine version
This commit is contained in:
parent
c02ea22eb8
commit
0cb82ef84a
7
.github/workflows/multiarch.yml
vendored
7
.github/workflows/multiarch.yml
vendored
@ -4,8 +4,8 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
# schedule:
|
schedule:
|
||||||
# - cron: '20 4 * * *'
|
- cron: '20 4 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -13,6 +13,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
IMAGE_TAG: ${{ secrets.DOCKERHUB_OWNER }}/telegram-bot-api
|
IMAGE_TAG: ${{ secrets.DOCKERHUB_OWNER }}/telegram-bot-api
|
||||||
|
ALPINE_VERSION: 3.19
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch:
|
arch:
|
||||||
@ -95,6 +96,8 @@ jobs:
|
|||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
|
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
|
||||||
platforms: ${{ matrix.arch }}
|
platforms: ${{ matrix.arch }}
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
tags: |
|
tags: |
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
FROM alpine:3.18 as build
|
ARG APLINE_VERSION
|
||||||
|
FROM alpine:${APLINE_VERSION} as build
|
||||||
|
|
||||||
ENV CXXFLAGS=""
|
ENV CXXFLAGS=""
|
||||||
WORKDIR /usr/src/telegram-bot-api
|
WORKDIR /usr/src/telegram-bot-api
|
||||||
@ -12,7 +13,7 @@ RUN mkdir -p build \
|
|||||||
&& cmake --build . --target install -j ${nproc} \
|
&& cmake --build . --target install -j ${nproc} \
|
||||||
&& strip /usr/src/telegram-bot-api/bin/telegram-bot-api
|
&& strip /usr/src/telegram-bot-api/bin/telegram-bot-api
|
||||||
|
|
||||||
FROM alpine:3.18
|
FROM alpine:${APLINE_VERSION}
|
||||||
|
|
||||||
ENV TELEGRAM_WORK_DIR="/var/lib/telegram-bot-api" \
|
ENV TELEGRAM_WORK_DIR="/var/lib/telegram-bot-api" \
|
||||||
TELEGRAM_TEMP_DIR="/tmp/telegram-bot-api"
|
TELEGRAM_TEMP_DIR="/tmp/telegram-bot-api"
|
||||||
|
Loading…
Reference in New Issue
Block a user