continuous-integration

How to set environment variable in node.js process when deploying with github action

混江龙づ霸主 提交于 2020-07-19 11:18:08
问题 I am trying to build an CI pipeline for my node.js server using github actions. I just need to solve one issue. I need to set environment variable, so that my node.js server can access the env variable via process.env Below is the github action workflow file. name: Build and Deploy to GKE on: pull_request: branches: - master # Environment variables available to all jobs and steps in this workflow env: ENGINE_API_KEY: ${{ secrets.ENGINE_API_KEY }} jobs: setup-build-publish-deploy: name: Setup,

Difference between .NetCore, VisualStudio build and MSBuild task in Azure Pipeline?

爷,独闯天下 提交于 2020-07-18 18:01:31
问题 I'm creating a new CI Azure Pipeline for my .Net Core projects. In Azure pipeline, Microsoft has provided three task for build i.e., .Net Core, Visual Studio Build and MSBuild. Since all three task does build operation, do we have any specific criteria to choose one task over another? I've gone through the documentation provided by Microsoft but I couldn't find much detail on this. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/visual-studio-build?view=azure-devops Edit

Difference between .NetCore, VisualStudio build and MSBuild task in Azure Pipeline?

时光怂恿深爱的人放手 提交于 2020-07-18 18:00:40
问题 I'm creating a new CI Azure Pipeline for my .Net Core projects. In Azure pipeline, Microsoft has provided three task for build i.e., .Net Core, Visual Studio Build and MSBuild. Since all three task does build operation, do we have any specific criteria to choose one task over another? I've gone through the documentation provided by Microsoft but I couldn't find much detail on this. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/visual-studio-build?view=azure-devops Edit

CI/CD tests involving pyspark - JAVA_HOME is not set

孤者浪人 提交于 2020-07-09 16:25:50
问题 I am working on a project which uses pyspark, and would like to set up automated tests. Here's what my .gitlab-ci.yml file looks like: image: "myimage:latest" stages: - Tests pytest: stage: Tests script: - pytest tests/. I built the docker image myimage using a Dockerfile such as the following (see this excellent answer): FROM python:3.7 RUN python --version # Create app directory WORKDIR /app # copy requirements.txt COPY local-src/requirements.txt ./ # Install app dependencies RUN pip

CI/CD tests involving pyspark - JAVA_HOME is not set

你说的曾经没有我的故事 提交于 2020-07-09 16:25:26
问题 I am working on a project which uses pyspark, and would like to set up automated tests. Here's what my .gitlab-ci.yml file looks like: image: "myimage:latest" stages: - Tests pytest: stage: Tests script: - pytest tests/. I built the docker image myimage using a Dockerfile such as the following (see this excellent answer): FROM python:3.7 RUN python --version # Create app directory WORKDIR /app # copy requirements.txt COPY local-src/requirements.txt ./ # Install app dependencies RUN pip

How do I know the total time I used to run workflow in github action?

可紊 提交于 2020-07-09 12:33:46
问题 Each time I create a PR or make commits, I have some workflows running. But since I have a private repo and I get only 2000 min/month for running workflows on Github Actions, I wanted to track the time used. How do I know how much total time I used out of 2000 free min that Github provides? Is there a place in Github UI that you see the total time you used/ total time remaining? 回答1: The best you can get is the view in the main actions tab: Sadly, no simple sum/month or anything like that was

CI/CD pipelines Azure devops automatic merge after deploy release

穿精又带淫゛_ 提交于 2020-07-06 13:51:25
问题 I have a classic env. setup like following: I have 2 branches: Develop and Master . Is there any way in Azure DevOps to setup the following rule: When a deploy is succeeded on dev environment (defined in the release pipeline of azure devops) ------> create automatically a pull request to merge develop into Master . or the other one: if a Build of develop branch is succeded -------> create automatically a pull request to merge develop into Master . Any help will be appreciated. 回答1: Edit: I

CI/CD pipelines Azure devops automatic merge after deploy release

孤街浪徒 提交于 2020-07-06 13:50:30
问题 I have a classic env. setup like following: I have 2 branches: Develop and Master . Is there any way in Azure DevOps to setup the following rule: When a deploy is succeeded on dev environment (defined in the release pipeline of azure devops) ------> create automatically a pull request to merge develop into Master . or the other one: if a Build of develop branch is succeded -------> create automatically a pull request to merge develop into Master . Any help will be appreciated. 回答1: Edit: I

CI/CD pipelines Azure devops automatic merge after deploy release

谁都会走 提交于 2020-07-06 13:50:06
问题 I have a classic env. setup like following: I have 2 branches: Develop and Master . Is there any way in Azure DevOps to setup the following rule: When a deploy is succeeded on dev environment (defined in the release pipeline of azure devops) ------> create automatically a pull request to merge develop into Master . or the other one: if a Build of develop branch is succeded -------> create automatically a pull request to merge develop into Master . Any help will be appreciated. 回答1: Edit: I

npm publish with git information instead of version from package.json

落花浮王杯 提交于 2020-06-29 06:51:15
问题 I am trying to find a solution to publish a npm artefact based on the git information. I looked to npm version and release-it, but these tools automate git actions (commit/push) to make the link between npm artefact version and git, it doesnot get the information from git. I would like to publish npm artefact with git identification of its source, something like the result of git describe --tags --always . Like this it could be possible to make the link between git/npm easily and the only git