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

Update and rename .github/workflows/dockerimage.yml to dockerimage.yml #53

Merged
merged 16 commits into from
Sep 29, 2019

Conversation

mmornati
Copy link
Owner

No description provided.

@pascalandy
Copy link
Collaborator

Cool stuff Marco! Is this part of the Github Action beta?

@sr229
Copy link
Collaborator

sr229 commented Aug 19, 2019

Cool stuff Marco! Is this part of the Github Action beta?

Yep, GitHub Actions has a new YAML sytax to keep up with their new CIs.

@sr229
Copy link
Collaborator

sr229 commented Aug 19, 2019

@mmornati You might need to fix your GPG keys first before I merge this

@mmornati
Copy link
Owner Author

Yes sorry for the GPG. I changed my personal laptop and I didn't take time to complete the first setup.
I just wanted to test the CI :)
And it is not complete yet. I need to complete the image_name part as the env variable was not working. And then add the push to Docker Hub.
All other stuff seems working like on Travis... Even if the performances are not the same (it is 2 times slower than Travis ci)

@mmornati mmornati force-pushed the test-actions branch 3 times, most recently from 474999b to 0238162 Compare August 19, 2019 19:35
Copy link
Collaborator

@sr229 sr229 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a empty variable problem in the GitHub CI. Fix that first.

@mmornati
Copy link
Owner Author

Looks like a empty variable problem in the GitHub CI. Fix that first.

Yes. I sent an email to GitHub yesterday evening. They answered that it should work with this script and the env variables should be visible in all the steps. But actually is not.
I will check it later. I put the answer into this PR just to share it with anybody:

The way you defined the variable environment should work for the whole step, and the subsequent runs within this step should be able to access this environment variable. Please try retrieving the variable with ${IMAGE_NAME} and let us know if this is working better for you. You can also use some of the default environment variables if they are used to build the image name.

@sr229
Copy link
Collaborator

sr229 commented Aug 24, 2019

Yeah I think we should give GitHub support another hit since our environment variables in this config is not reading properly.

@pascalandy
Copy link
Collaborator

I have a similar challenge regarding VARs. Here is the issue.

@pascalandy
Copy link
Collaborator

@mmornati here is the solution I found — actions/starter-workflows#68 (comment)

@mmornati
Copy link
Owner Author

Just for your information @pascalandy and @sr229 I received this week a new mail from the GitHub support. It seems they created stuffs right now to correctly fix the problem. ❤️

There are a couple of ways to share environment variables between steps in a job:

I thought the best one was the ::set-env: quick way to share env variable. And it is working finally !! 😄

@mmornati
Copy link
Owner Author

Do not merge for the moment as I would like to add the docker image pushes when a PR is merged (like the check we had in travis)

@mmornati
Copy link
Owner Author

It should be good... but a part of the workflow can be really tested only after the merge. I will push it and fix if needed.

@mmornati mmornati merged commit f7feca8 into master Sep 29, 2019
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

Successfully merging this pull request may close these issues.

3 participants