Skip to content

Commit

Permalink
Update alpine version
Browse files Browse the repository at this point in the history
  • Loading branch information
JrooTJunior committed Jan 7, 2024
1 parent c02ea22 commit 0cb82ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@ on:
push:
branches:
- master
# schedule:
# - cron: '20 4 * * *'
schedule:
- cron: '20 4 * * *'

jobs:
build:
name: Build Docker image (${{ matrix.arch }})
runs-on: ubuntu-latest
env:
IMAGE_TAG: ${{ secrets.DOCKERHUB_OWNER }}/telegram-bot-api
ALPINE_VERSION: 3.19
strategy:
matrix:
arch:
Expand Down Expand Up @@ -95,6 +96,8 @@ jobs:
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache
platforms: ${{ matrix.arch }}
build-args: |
ALPINE_VERSION=${{ env.ALPINE_VERSION }}
push: false
load: true
tags: |
Expand Down
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM alpine:3.18 as build
ARG APLINE_VERSION
FROM alpine:${APLINE_VERSION} as build

ENV CXXFLAGS=""
WORKDIR /usr/src/telegram-bot-api
Expand All @@ -12,7 +13,7 @@ RUN mkdir -p build \
&& cmake --build . --target install -j ${nproc} \
&& 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" \
TELEGRAM_TEMP_DIR="/tmp/telegram-bot-api"
Expand Down

0 comments on commit 0cb82ef

Please sign in to comment.