Questions tagged [github-actions]
The github-actions tag has no usage guidance.
21
questions
0
votes
0
answers
14
views
how to pass run time environment variables into bash script
I am using GitHub actions to create an virtual machine in Azure where I am getting some variables as build parameters and storing it into the environment variables. now I need to use that environment ...
0
votes
0
answers
10
views
php-actions/phpunit GitHub action alternatives
I ran into a problem with php-actions/phpunit GitHub action, and reported that issue to action developers, but it was a while ago, and my team can't get a valid feedback about their PHP tests beacuse ...
1
vote
1
answer
44
views
Can we run github actions inside a docker container?
Is it possible to run github actions inside docker container like jenkins?
0
votes
0
answers
39
views
Create a Release in Github from a Tag using Github action
I want to create a Release in Github from a Tag that I used to deploy my changes in staging environment.
I used the below step and tried adding sha value of my tag so that a release would have those ...
0
votes
0
answers
37
views
GHA with Semantic Versioning fails from Different branch
I am trying to integrate Github Actions with Semver.
My Semver settings looks like this
module.exports = {
branches: [ 'main', {name: 'beta', prerelease: true} ],
repositoryUrl: "https://...
0
votes
1
answer
216
views
decode base64 Github Secrets
I am setting up a pipeline to run Cypress automated tests using github actions/workflows on my code anytime there is a push to the repo. I came into a scenario where I want to generate dyanmic .env ...
0
votes
1
answer
55
views
Run a dev server in CI pipeline
I have a CI pipeline setup using Github Action/Workflows, where I want to run Cypress Automated tests; however I am having some problems of when trying to run my dev server. Let me show you my ...
0
votes
1
answer
108
views
How do I force Packer to use Azure client secret in GitHub Actions workflow?
I use the following yml workflow in GitHub:
- name: Packer Build
run: packer build -force -var 'client_id=${{ secrets.AZURE_CLIENT_ID }}' \
-var 'client_secret=${{ secrets....
0
votes
0
answers
76
views
github workflow will not hangup ssh command
I want to do the following:
user merges code to the branch test-branch
github runner connects to the server proxy-server.example.com via ssh
proxy-server.example.com sends the command ssh target-...
1
vote
0
answers
79
views
Building docker image of nuxt application using github actions fails (heap memory size exceeded)
I am trying to setup Github Actions workflow to automatically build and push docker image of my nuxt app,
When the workflow finishes and I pull the image and run it, the web application doesn't load ...
2
votes
1
answer
127
views
Why should I tag a commit to create a release?
I work on a new CICD, replacing Jenkins-X 2 by GitHub Actions.
After seeing a lot of actions to create a release + changelog, I found that a lot of them are trigger by a tag on a commit to launch the ...
2
votes
1
answer
130
views
How to configure EC2 inbound rules for GitHub Actions deploy
I have a GitHub Actions workflow to deploy a service to an EC2 instance. I have currently opened the SSH access to all IPs but I want to restrict this to IPs used by GitHub Actions runners.
However, ...
2
votes
0
answers
113
views
Incorporating python linter(flake8) in the CI/CD pipeline that use GitHub, Github Actions in a code base that is not in compliance
I have a codebase that is not in compliance with flake8. The CI/CD pipeline uses GitHub/GitHub actions. I would like to start adding python flake8 (to check for complexity, errors and code smells) ...
1
vote
0
answers
30
views
Taking a bash command's output and putting it into a message in yaml for GitHub actions?
I have the following Github Action workflow that is intended to read our lines of code coverage from a coverage.txt file and print the coverage as a comment.
name: Report Code Coverage
on:
...
0
votes
0
answers
80
views
How to build an automated pipeline to AWS for a Django app in Github with more than one Dockerfile
I am completely new to DevOps.
I have coded a few Django apps and I have been able to put them in production using Docker with nginx and uwsgi.
The structure is
-app/
--manage.py
-proxy/
--Dockerfile
-...
1
vote
0
answers
24
views
Github action for displaying the number of out of date package dependencies
How can I add a shield to my .README that displays the current number of out of date dependencies in my package.json? Whenever I run my github action "Firebase CI", I'd like the the badge to ...
1
vote
0
answers
16
views
How to use old server repository path for GIthub action CICD (self hosted)
I have a production server where I already have a my project repository. Now I have setup github action for CICD. I have given my workspace path, but it is creating 2 subdirectory with same name as my ...
3
votes
3
answers
165
views
pypa/gh-action-pypi-publish token value 'does not start with "pypi-"'
I am trying to use the pypa/gh-action-pypi-publish action in GitHub to push a Python package to PyPI. I'm in the team that owns microbiomedata/nmdc-schema and successfully uses a GitHub action to ...
1
vote
0
answers
23
views
Our code is behind a firewall and we don't want to put source code in cloud. Are there any good CI/CD using local agents for Azure/Github actions
Our source code is in our servers and we don't have approval to put it in cloud.
We don't have a seamless CI/CD. Can we use Azure pipeline agents or any local agents to build our code and only export ...
4
votes
1
answer
85
views
How do I prevent a given GitHub Workflow from being launched twice from two almost simultaneous events?
I have a repo, in which there is one folder at the root with a Makefile to build a C library. In the same repo, there is another folder at the root with a folder with another Makefile for building a ...
0
votes
1
answer
168
views
How can I use a buildah script for image generation using GitHub Actions?
Buildah scripts typically use shell. You can see an example of a script here,
#!/bin/sh
ctr=$(buildah from alpine:3)
buildah commit "$ctr" myAlpineImage
Let's say I have such a shell script ...