Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added environment variable (with default) to customize the container base image #30

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM alpine:3.19
FROM ${ARG_BASE_IMAGE}

RUN apk update \
&& apk add --no-cache bash curl git

COPY rootfs/ /
COPY rootfs/ /
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,15 @@ inputs:
description: '[Internal] The location to store the mutex repo'
required: false
default: '/run/gh-action-mutex/repo'
base_image:
description: 'The base image to use for the docker container (for instance, to use another registry)'
required: false
default: 'alpine:3.19'
runs:
using: 'docker'
image: 'Dockerfile'
env:
ARG_BASE_IMAGE: ${{ inputs.base_image }}
ARG_BRANCH: ${{ inputs.branch }}
ARG_CHECKOUT_LOCATION: ${{ inputs.internal_checkout-location }}
ARG_GITHUB_SERVER: ${{ inputs.github_server }}
Expand Down