Questions tagged [github-actions]
The github-actions tag has no usage guidance.
35
questions
1
vote
0
answers
52
views
What are the differences between Azure DevOps (Pipelines) and GitHub Actions?
My team is thinking of switching from Azure DevOps to GitHub Actions, currently we are using Azure DevOps Pipelines to handle code deployments. Our release pipelines are configured in a way where they ...
0
votes
1
answer
23
views
Github Actions: How to export a variable from within Docker and reuse across steps?
We’re developing embedded software which needs to be compiled inside an SDK container. I’m setting up a CI/CD pipeline so that we can compile, ssh-copy and ssh install it on the remote device. To make ...
0
votes
0
answers
93
views
AWS Amplify + Flutter: How to do CI/CD?
Background
I am using AWS Amplify to build an app that uses S3 and Amplify authentication. I want to use CI/CD to automate deploying for people who only want to learn Flutter.
I setup my project in ...
1
vote
1
answer
39
views
How many deployment environments are appropriate for SPA + API architecture?
My company uses Azure as our cloud-infrastructure provider, and we are making use of their Azure Webapp PaaS offering to individually deploy our SPA (react.js) and corresponding API (Golang). Haven't ...
0
votes
0
answers
41
views
bundle install private gem from GitHub actions
I'm setting up GitHub actions for one of our ruby projects and it requires a gem that is from a private repo on GitHub. I know I can check out whatever repo I need with the checkout action, but how do ...
0
votes
1
answer
163
views
CI statistics for GitHub actions
I'm in the process of migrating to GitHub Actions and I'm looking for some way to get statistics on my GitHub workflows like
The average time it takes to build
The build success rate
The average time ...
0
votes
1
answer
234
views
"An unknown error occurred" when authenticating between GitHub Actions and AWS using OIDC
I was unable to successfully authenticate when attempting to create a GitHub Actions workflow that would authenticate with an AWS IAM Identity Provider (IdP) using Open ID Connect (OIDC), based on ...
1
vote
0
answers
36
views
Best practices for managing Github actions + workflows in an organization?
In my organization, we have more than a hundred repos, most of them use their own workflows but also reusable workflows that are located in a designated repo, that also holds all of our self made ...
1
vote
1
answer
47
views
User-level secrets in GitHub Actions
I would like to create a GitHub workflow for running tests against a REST API. The API needs a key that is always tied to a user, there is no global "testing" key.
Is there a way for each ...
1
vote
0
answers
10
views
How to find failed steps with `gh`
I have a Github Actions workflow which contains several steps that allow continuation on error via continue-on-error: true. It is a scheduled workflow; the steps are independent of each other, and one ...
0
votes
0
answers
47
views
Comparison of two CI/CD strategies with k8s deployment previews
I am implementing a new CI/CD strategy across my organization's several dozen repos.
The main goal is to move from a dedicated QA environment branch to deployment previews in ad-hoc environments ...
1
vote
1
answer
154
views
Upload pages artifact without overwriting previous data
I am trying to create a GitHub workflow that would essentially deploy multiple static websites to GH Pages. The sites would live in their own subfolders beneath the (website) root, and the catch is ...
0
votes
0
answers
47
views
How do I get the links to the internal distribution builds with expo/expo-github-action?
I am building internal distribution builds for a React Native Expo app via GitHub actions and EAS Build. The workflow is triggered on push using expo/expo-github-action@v7. Once the build is finished, ...
0
votes
0
answers
934
views
Build Docker container for ARM64
I am trying to have a Blazor app developped with .NET 7 being containerized.
It eventually targets ARM64 (Raspberry Pi).
I need to have the image created when the code is pushed to a GitHub repo.
...
0
votes
0
answers
42
views
simplest way to trigger my AWS cloudformation(cdk) if my github action finished(publish.yml)
long story short , I have a react js app that I build and upload to s3 with github actions. I tried with aws cloudbuild but it only offers me the default hooks which doesn't wait for my github action ...
0
votes
0
answers
113
views
Github Action - How can I trigger a workflow when argocd deployment is finished?
I'm working in a company that uses Github Actions and Argocd.(using Argocd helm chart). Needless to say that the Github repo is private and argocd is in an internal network that used by the company ...
1
vote
3
answers
1k
views
How does Github Actions work with docker containers?
Consider this GA workflow:
name: My GA Workflow
on: push
jobs:
myJobName:
runs-on: ubuntu-latest
container: cypress/included:10.6.0
steps:
- name: Ensure tools are available
...
1
vote
1
answer
655
views
How to upload a file as user input in Github Actions workflow?
I would like to upload .env file to a build in Github Actions. Is there any way I can do it?
0
votes
1
answer
115
views
Publish python package into private repository behind VPN
I'm using Github Actions to publish my python packages automatically. When working with PyPI everything works fine and providing different config to point on different repository is not an issue.
But ...
0
votes
0
answers
772
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 ...
1
vote
1
answer
664
views
Can we run github actions inside a docker container?
Is it possible to run github actions inside docker container like jenkins?
2
votes
1
answer
2k
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
170
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
625
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....
1
vote
0
answers
385
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
260
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
517
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, ...
3
votes
1
answer
599
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
198
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:
...
1
vote
0
answers
33
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
18
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
473
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
2
answers
53
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 ...
6
votes
2
answers
320
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
308
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 ...