metadata-action | GitHub Action to extract metadata | Continous Integration library
kandi X-RAY | metadata-action Summary
kandi X-RAY | metadata-action Summary
GitHub Action to extract metadata from Git reference and GitHub events. This action is particularly useful if used with Docker Build Push action to tag and label Docker images.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of metadata-action
metadata-action Key Features
metadata-action Examples and Code Snippets
Community Discussions
Trending Discussions on metadata-action
QUESTION
I'm creating web application (angular + nest.js) and I'm trying to make multi stage build - I want to reduce size of docker image.
Angular build works good.
Nest.js one builds successfully on my pc using docker compose build
, but fails on github actions with following error: Status: COPY failed: stat usr/src/app/dist: file does not exist, Code: 1
What can i do to fix it?
Dockerfile:
...ANSWER
Answered 2022-Feb-07 at 10:46Try with the following Dockerfile:
QUESTION
I managed to create two actions on 1 private repository:
- The first one builds the image and push the docker image to GitHub Container Registry
- The second one needs to be triggered when newer image is published to the GitHub container registry and deploy the image
The issue is that the second one it doesn't get triggered and doesn't run. I use GitHub Repo Token, and I found this that says triggering new workflows should be done using a personal access token. Is this the real issue or there is some workaround? Personally I don't want to put my github token there.
As reference here is the yml code for the fist github action:
...ANSWER
Answered 2021-Nov-08 at 15:46GitHub actions prevents triggering more actions. Sort of to protect against infinite loops. Hence why the token used by GitHub Actions has a special flag on it which causes the 2nd workflow not to trigger.
You have a few options:
- Use a PAT to push to GitHub Container Registry. (as per the docs)
- Have a 2nd stage that depends on the first one in your existing workflow to perform the deployment.
- A variation on 2, use a template to extract the deploy logic to a single template, use the same template action in both the workflow that pushes the image as well as the workflow that triggers when an image is pushed
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install metadata-action
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page