File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Container with all prod providers
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag :
7+ description : ' Tag in semver format'
8+ required : true
9+
10+ jobs :
11+ container_prod_all_providers :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - run : echo "Building and tagging $GITHUB_REPOSITORY:${{ github.event.inputs.tag }}"
15+ - uses : actions/checkout@v2 # Checking out the repo
16+ - name : Build and Publish Docker image
17+ 18+ with :
19+ github-token : ${{ secrets.GITHUB_TOKEN }}
20+ image-name : vmpooler
21+ build-context : ./docker/prod-all-providers
22+ image-tag : ${{ github.event.inputs.tag }}-prod-all-providers
23+ - name : Generate Release Body
24+ env :
25+ RELEASE_BODY_FILE : " ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md"
26+ run : |
27+ echo "Source image: $(grep ^FROM ./docker/prod-all-providers/Dockerfile |cut -d ' ' -f2) + OS updates\n" > ${RELEASE_BODY_FILE}
28+ echo "Gems:\n" >> ${RELEASE_BODY_FILE}
29+ echo "$(grep -e 'vmpooler ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
30+ echo "$(grep -e 'vmpooler-provider-.* ([0-9]' docker/prod-all-providers/Gemfile.lock | xargs -L1 echo -)" >> ${RELEASE_BODY_FILE}
31+ - name : Tag Release
32+ uses : ncipollo/release-action@v1
33+ with :
34+ tag : ${{ github.event.inputs.tag }}-prod-all-providers
35+ token : ${{ secrets.GITHUB_TOKEN }}
36+ draft : false
37+ prerelease : false
38+ bodyFile : ${{ github.event.inputs.tag }}-prod-all-providers-release-body.md
39+ generateReleaseNotes : true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ FROM jruby:9.2-jdk
1313ENV RACK_ENV=production
1414
1515RUN apt-get update -qq && \
16+ apt-get upgrade -y && \
1617 apt-get install -y --no-install-recommends make && \
1718 apt-get clean autoclean && \
1819 apt-get autoremove -y && \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
1616 RACK_ENV=production
1717
1818RUN apt-get update -qq && \
19+ apt-get upgrade -y && \
1920 apt-get install -y --no-install-recommends make && \
2021 apt-get clean autoclean && \
2122 apt-get autoremove -y && \
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ ENV LOGFILE=/dev/stdout \
1616 RACK_ENV=production
1717
1818RUN apt-get update -qq && \
19+ apt-get upgrade -y && \
1920 apt-get install -y --no-install-recommends make && \
2021 apt-get clean autoclean && \
2122 apt-get autoremove -y && \
You can’t perform that action at this time.
0 commit comments