mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 03:28:41 -05:00
Merge pull request #15 from puppetlabs/prod-docker
Add prod container setup
This commit is contained in:
commit
bbdb817ae9
4 changed files with 42 additions and 0 deletions
39
.github/workflows/container-all-prod-providers.yml
vendored
Normal file
39
.github/workflows/container-all-prod-providers.yml
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
name: Container with all prod providers
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
description: 'Tag in semver format'
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
container_prod_all_providers:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo "Building and tagging $GITHUB_REPOSITORY:${{ github.event.inputs.tag }}"
|
||||
- uses: actions/checkout@v2 # Checking out the repo
|
||||
- name: Build and Publish Docker image
|
||||
uses: VaultVulp/gp-docker-action@1.2.0
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
image-name: vmpooler
|
||||
build-context: ./docker/prod-all-providers
|
||||
image-tag: ${{ github.event.inputs.tag }}-prod-all-providers
|
||||
- name: Generate Release Body
|
||||
env:
|
||||
RELEASE_BODY_FILE: "${{ github.event.inputs.tag }}-prod-all-providers-release-body.md"
|
||||
run: |
|
||||
echo "Source image: $(grep ^FROM ./docker/prod-all-providers/Dockerfile |cut -d ' ' -f2) + OS updates\n" > ${RELEASE_BODY_FILE}
|
||||
echo "Gems:\n" >> ${RELEASE_BODY_FILE}
|
||||
echo "$(grep -e 'vmpooler ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
|
||||
echo "$(grep -e 'vmpooler-provider-.* ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
|
||||
- name: Tag Release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ github.event.inputs.tag }}-prod-all-providers
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
bodyFile: ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md
|
||||
generateReleaseNotes: true
|
||||
|
|
@ -13,6 +13,7 @@ FROM jruby:9.2-jdk
|
|||
ENV RACK_ENV=production
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends make && \
|
||||
apt-get clean autoclean && \
|
||||
apt-get autoremove -y && \
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
|
|||
RACK_ENV=production
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends make && \
|
||||
apt-get clean autoclean && \
|
||||
apt-get autoremove -y && \
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
|
|||
RACK_ENV=production
|
||||
|
||||
RUN apt-get update -qq && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y --no-install-recommends make && \
|
||||
apt-get clean autoclean && \
|
||||
apt-get autoremove -y && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue