gh-action-bump-version/Dockerfile

37 lines
1.1 KiB
Docker

# Use the latest version of Node.js
#
# You may prefer the full image:
# FROM node
#
# or even an alpine image (a smaller, faster, less-feature-complete image):
# FROM node:alpine
#
# You can specify a version:
# FROM node:10-slim
FROM node:slim
# Labels for GitHub to read your action
LABEL "com.github.actions.name"="Automated version bump for npm packages."
LABEL "com.github.actions.description"="Automated version bump for npm packages."
# Here are all of the available icons: https://feathericons.com/
LABEL "com.github.actions.icon"="chevron-up"
# And all of the available colors: https://developer.github.com/actions/creating-github-actions/creating-a-docker-container/#label
LABEL "com.github.actions.color"="blue"
# Copy the package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN apt-get update
RUN apt-get -y install git
RUN git config --global user.name "Bump Version"
RUN git config --global user.email "gh-action-bump-version@users.noreply.github.com"
RUN npm ci
# Copy the rest of your action's code
COPY . .
# Run `node /index.js`
ENTRYPOINT ["node", "/index.js"]