Skip to content

Commit

Permalink
setup github action verifying docker build succeeds (to replace docke…
Browse files Browse the repository at this point in the history
…r's autobuild service)

> Docker’s Autobuild service has been targeted by the same bad actors,
> so today we are disappointed to announce that
> we will be discontinuing Autobuilds on the free tier starting from June 18, 2021.
https://www.docker.com/blog/changes-to-docker-hub-autobuilds/
  • Loading branch information
fphammerle committed Jun 11, 2021
1 parent 7103e7e commit d7b8754
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/container-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: container image

on:
push:
pull_request:
schedule:
- cron: '0 20 * * 5'

jobs:
docker-build:
runs-on: ubuntu-20.04
steps:
- uses: docker/setup-qemu-action@v1.2.0
- uses: docker/setup-buildx-action@v1.3.0
# > By default, this action uses the Git context so you don't need to use
# > the actions/checkout action to checkout the repository because this
# > will be done directly by buildkit. [...]
# > any file mutation in the steps that precede [...] will be ignored
# https://github.com/marketplace/actions/build-and-push-docker-images
- uses: docker/build-push-action@v2.5.0
with:
platforms: |
linux/amd64
linux/arm/v7
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN apk add --no-cache \
&& adduser -S build

USER build
RUN pip3 install --user --no-cache-dir pipenv==2020.6.2
RUN pip3 install --user --no-cache-dir pipenv==2021.5.29

ARG SOURCE_DIR_PATH
COPY --chown=build:nobody Pipfile Pipfile.lock $SOURCE_DIR_PATH/
Expand Down

0 comments on commit d7b8754

Please sign in to comment.