mirror of
https://github.com/puppetlabs/vmpooler-deployment.git
synced 2026-01-26 03:28:41 -05:00
Add prod container setup
The release body file that is created by CI should result in text similar to this: Source image: jruby:9.2-jdk + OS updates Gems: - vmpooler (2.0.0) - vmpooler-provider-vsphere (1.4.0)
This commit is contained in:
parent
6da18330ed
commit
ed64ca1442
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
|
ENV RACK_ENV=production
|
||||||
|
|
||||||
RUN apt-get update -qq && \
|
RUN apt-get update -qq && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
apt-get install -y --no-install-recommends make && \
|
apt-get install -y --no-install-recommends make && \
|
||||||
apt-get clean autoclean && \
|
apt-get clean autoclean && \
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
|
||||||
RACK_ENV=production
|
RACK_ENV=production
|
||||||
|
|
||||||
RUN apt-get update -qq && \
|
RUN apt-get update -qq && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
apt-get install -y --no-install-recommends make && \
|
apt-get install -y --no-install-recommends make && \
|
||||||
apt-get clean autoclean && \
|
apt-get clean autoclean && \
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
|
||||||
RACK_ENV=production
|
RACK_ENV=production
|
||||||
|
|
||||||
RUN apt-get update -qq && \
|
RUN apt-get update -qq && \
|
||||||
|
apt-get upgrade -y && \
|
||||||
apt-get install -y --no-install-recommends make && \
|
apt-get install -y --no-install-recommends make && \
|
||||||
apt-get clean autoclean && \
|
apt-get clean autoclean && \
|
||||||
apt-get autoremove -y && \
|
apt-get autoremove -y && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue