-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker image for running GitHub Actions locally using ACT
- Loading branch information
Showing
4 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Docker image to be used for running CI locally using ACT | ||
FROM ghcr.io/catthehacker/ubuntu:act-latest | ||
|
||
# Install java | ||
RUN apt-get update && sudo apt-get install -y openjdk-21-jre |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build -t genomicmedicinesweden/act-nextflow:latest . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker push genomicmedicinesweden/act-nextflow:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#!/bin/bash | ||
# This script uses the act tool to execute GitHub Actions workflows locally | ||
# for increased iteration speed. | ||
# It requires that you have Docker installed. | ||
# It requires the act [1] binary to be available in your path. | ||
# It also requires a late version of the GitHub commandline client (`gh`) [2] | ||
# to be installed and available on your path. | ||
# [1] https://github.com/nektos/act | ||
# [2] https://github.com/cli/cli | ||
act -v \ | ||
# Note: You can add the -v option to get more output, for troubleshooting. | ||
act \ | ||
-s GITHUB_TOKEN="$(gh auth token)" \ | ||
-e event.json \ | ||
-P ubuntu-latest=catthehacker/ubuntu:act-latest \ | ||
-P ubuntu-latest=genomicmedicinesweden/act-nextflow:latest \ | ||
-W .github/workflows/ci.yml \ | ||
|& tee ci-output-$(date +%Y%m%d.%H%M%S).log |