1
0
mirror of synced 2026-04-07 14:43:54 +00:00

Add environment variables move medley files to /home/medley. (#627)

Add Build_Date, Maiko_Release and Medley_Release environment variables.
This commit is contained in:
Bill Stumbo
2021-12-15 00:58:31 -05:00
committed by GitHub
parent c2915bf5d3
commit 936bdd84b5
2 changed files with 16 additions and 5 deletions

View File

@@ -50,6 +50,8 @@ jobs:
echo ::set-output name=docker_image::${DOCKER_IMAGE}
echo ::set-output name=build_time::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
echo ::set-output name=version::${VERSION}
echo ::set-output name=maiko_release::${MAIKO_RELEASE}
echo ::set-output name=medley_release::${MEDLEY_RELEASE}
# Download Medley Release Assets
- name: Download Release Assets
@@ -103,4 +105,8 @@ jobs:
# Push the created image
push: true
# tags to assign to the Docker image
tags: ${{ steps.prep.outputs.tags }}
tags: ${{ steps.prep.outputs.tags }}
build-args: |
medley_release=${{steps.prep.outputs.medley_release}}
maiko_release=${{steps.prep.outputs.maiko_release}}
build_date=${{steps.prep.outputs.build_time}}

View File

@@ -1,19 +1,24 @@
FROM ubuntu:focal
ARG BUILD_DATE
ARG build_date
ARG medley_release
ARG maiko_release
LABEL name="Medley"
# LABEL tags=${tags}
LABEL description="The Medley Interlisp environment"
LABEL url="https://github.com/Interlisp/medley"
LABEL build-time=$BUILD_DATE
LABEL build-time=$build_date
ENV BUILD_DATE=$build_date
ENV MEDLEY_RELEASE=$medley_release
ENV MAIKO_RELEASE=$maiko_release
RUN apt-get update && apt-get install -y tightvncserver
EXPOSE 5900
# Copy and uncompress loadup and required source files.
ADD *.tgz /app
ADD *.tgz /home
WORKDIR /app/medley
WORKDIR /home/medley
RUN adduser --disabled-password --gecos "" medley
USER medley