Category : github-actions

We are configuring a self-hosted android runner for GithubActions, but when we run some command of gradlew, it crashes/stops sending an error connection reset. Our docker file contains the basic for a android runner (few lines of code for gradle and sdk installation. the tools are also installed properly). # Gradle ENV GRADLE_VERSION 7.0.2 ENV ..

Read more

I’m running the staticrypt CLI (based on cryptojs) in a Docker container on Github Actions and getting an error that I can’t reproduce in my development environment. When the container runs staticrypt my_input.html password -o my_output.html, I get: /usr/local/lib/node_modules/staticrypt/node_modules/yargs/build/index.cjs:1 "use strict";var t=require("assert");class e extends Error{constructor(t){super(t||"yargs error"),this.name="YError",Error.captureStackTrace(this,e)}}let s,i=[];function n(t,o,a,h){s=h;let l={};if(Object.prototype.hasOwnProperty.call(t,"extends")){if("string"!=typeof t.extends)return l;const r=/.json|..*rc$/.test(t.extends);let h=null;if(r)h=function(t,e){return s.path.resolve(t,e)}(o,t.extends);else try{h=require.resolve(t.extends)}catch(e){return ..

Read more

Our package uses postgres to store data, thus we need postgres for the tests. Adding the postgres service and user is easy, but we rely on the enabled prepared_transactions feature. Looking at https://hub.docker.com/_/postgres doing $ docker run -d –name some-postgres -e POSTGRES_PASSWORD=mysecretpassword postgres -c max_prepared_transactions=10 would be the way to do this, but GHA does ..

Read more

I am working through the Testdriven.io: Test-Driven Development with FastAPI and Docker course and am currently on the continuous integration section. In this section you use github actions to build your docker image and run tests and linting and what not. During the Test Docker Image step of the flow I am receiving the following ..

Read more

In docs there is described how to run container with additional options: Workflow syntax for GitHub Actions – GitHub Docs jobs: build: name: Container with name runs-on: ubuntu-latest container: image: ghcr.io/repo/image:latest credentials: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} options: –name="myContainerName" # or –name myContainerName But snippet above create and start docker without name ..

Read more

In my workflow I’m running a custom action using the following step: – name: Run action uses: ./backend env: MY_SECRET: ${{ secrets.MY_SECRET }} And here’s action.yml: name: "Backend" on: [pull_request] runs: using: ‘docker’ image: "Dockerfile" For some reason, MY_SECRET is empty in my Dockerfile. I tried accessing it both in a shell script file and ..

Read more

I would like to use github actions to build a multiarch image as explained here https://github.com/docker/build-push-action/blob/master/docs/advanced/multi-platform.md All examples I find, use the same Dockerfile for all architectures. However, the project I am working with contains a different Dockerfile for each architecture. Is there a way to create a multi-arch image with github actions by consuming ..

Read more