Skip to content

Commit

Permalink
Merge pull request #2 from BretFisher/cron-build
Browse files Browse the repository at this point in the history
Keep image fresh
  • Loading branch information
BretFisher committed Aug 20, 2023
2 parents 6beac2a + 30b03c1 commit cefc587
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/call-docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@
paths-ignore:
- 'README.md'
- '.github/linters/**'

schedule:
# re-run monthly to keep image fresh with upstream base images
- cron: '0 12 15 * *'

# cancel any previously-started, yet still active runs of this workflow on the same branch
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
FROM alpine:3.18.2 as alpinelinux
FROM debian:stable-slim as fetcher
COPY build/fetch_binaries.sh /tmp/fetch_binaries.sh

Expand All @@ -7,7 +8,7 @@ RUN apt-get update && apt-get install -y \

RUN /tmp/fetch_binaries.sh

FROM alpine:3.17.3
FROM alpinelinux

RUN set -ex \
&& echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
Expand Down

0 comments on commit cefc587

Please sign in to comment.