Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of multistep workflow #34

Closed
DemiusAcademius opened this issue Apr 22, 2020 · 4 comments
Closed

Example of multistep workflow #34

DemiusAcademius opened this issue Apr 22, 2020 · 4 comments

Comments

@DemiusAcademius
Copy link

How to use build artifact from previous workflow step?

I did not find examples
My script does not work (does not see the artifact collected in the previous step)

Thanks!

@zappy-shu
Copy link
Contributor

Hi @DemiusAcademius can you give us an example script?

@DemiusAcademius
Copy link
Author

DemiusAcademius commented Apr 22, 2020 via email

@DemiusAcademius
Copy link
Author

My Dockerfile:

FROM adoptopenjdk:14.0.1_7-jre-openj9-0.20.0

VOLUME /tmp

COPY package/*-runner.jar app.jar

EXPOSE 8443

RUN adduser --disabled-password --gecos "" -u 1001 --no-create-home app_user &&
chown -R app_user /tmp &&
chown app_user /app.jar &&
chmod 444 /app.jar

USER app_user

ENTRYPOINT [ "java",
"-Dfile.encoding=UTF-8",
"-Djava.security.egd=file:/dev/./urandom",
"-Duser.timezone=Europe/Chisinau",
"-jar","app.jar" ]

@crazy-max
Copy link
Member

@DemiusAcademius Each job is isolated in his own runner so the fs is not shared but you can pass data between jobs in a workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants