Skip to content

Commit

Permalink
update runners: from self-hosted to github ubuntu-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian committed Jun 7, 2024
1 parent 2a5f7b6 commit f62bb1b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ on:
jobs:
build:
name: Kheops-compiled Docker ${{ github.event_name }}
runs-on: [self-hosted]
runs-on: [ubuntu-latest]
steps:
- name: Checkout current project repository
uses: actions/checkout@v3
with:
path: testing_project_Angular
path: ${{ env.REPOSITORY_DIR }}
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
Expand All @@ -37,6 +37,8 @@ jobs:
docker pull terrastruct/d2:v0.6.5
- id: run_docker_image
name: Run Kheops-compiled
env:
IMGBB_KEY: ${{ secrets.IMGBB_KEY }}
run: |
mkdir -p ./output
echo 'DATA_DUMP<<EOF' >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -64,7 +66,7 @@ jobs:
docker run --rm -u "$(id -u):$(id -g)" -v "$PWD:/home/debian/src" terrastruct/d2:v0.6.5 ./output/diagram.d2 ./output/diagram.png
echo '```' >> $GITHUB_OUTPUT
echo "![Diagram]($(curl -X POST "https://api.imgbb.com/1/upload" -F "key=a1c8eaba9c93fdb65c7961d1d74b7ef4" -F "image=@./output/diagram.png" | jq -r '.data.image.url'))" >> $GITHUB_OUTPUT
echo "![Diagram]($(curl -X POST "https://api.imgbb.com/1/upload" -F "key=$IMGBB_KEY" -F "image=@./output/diagram.png" | jq -r '.data.image.url'))" >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Edit PR comment
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ on:
jobs:
build:
name: Kheops-compiled Docker ${{ github.event_name }}
runs-on: [self-hosted]
runs-on: [ubuntu-latest]
steps:
- name: Checkout current project repository
uses: actions/checkout@v3
with:
path: testing_project_Angular
path: ${{ env.REPOSITORY_DIR }}
- id: pull_docker_image
name: Pull Kheops-compiled container image
run: |
Expand Down

0 comments on commit f62bb1b

Please sign in to comment.