Skip to content

Commit

Permalink
GHA: update deploy_protected.yml (#2294)
Browse files Browse the repository at this point in the history
Closes #2288

Fixes:

1. > Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: docker/setup-qemu-action@v2, docker/setup-buildx-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

2. Prevent errors on fork actions: 
   > Run elgohr/Publish-Docker-Github-Action@v4
Run $GITHUB_ACTION_PATH/entrypoint.sh
Unable to find the username. Did you set with.username?
   
   Either check for organization=amici-dev, or whether the username is set.
  • Loading branch information
dweindl authored Feb 20, 2024
1 parent 0434802 commit 24685a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy_protected.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ on:

jobs:
dockerhub:
# https://github.com/marketplace/actions/publish-docker
name: Deploy Dockerhub

if: github.repository_owner == 'AMICI-dev'
runs-on: ubuntu-22.04

strategy:
Expand All @@ -31,9 +30,9 @@ jobs:
- uses: actions/checkout@v4
- run: git archive -o container/amici.tar.gz --format=tar.gz HEAD
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v4
with:
Expand Down

0 comments on commit 24685a3

Please sign in to comment.