From 24685a39c38f32786ad7ac5a9a9a0b720a4cd288 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Tue, 20 Feb 2024 11:20:07 +0100 Subject: [PATCH] GHA: update deploy_protected.yml (#2294) 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. --- .github/workflows/deploy_protected.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy_protected.yml b/.github/workflows/deploy_protected.yml index c520896a70..eaf625ea22 100644 --- a/.github/workflows/deploy_protected.yml +++ b/.github/workflows/deploy_protected.yml @@ -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: @@ -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: