Update .forgejo/workflows/publish.yml
Some checks failed
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 56s

This commit is contained in:
muerwre 2024-08-16 22:36:06 +07:00
parent 59ece68df7
commit 0cc628f9b2

View file

@ -30,12 +30,17 @@ jobs:
with: with:
images: git.vault48.org/${{ env.GITHUB_REPOSITORY }} images: git.vault48.org/${{ env.GITHUB_REPOSITORY }}
- name: Setup node - name: Get yarn cache directory path
uses: actions/setup-node@v4 id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with: with:
node-version: 20 path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
cache: 'yarn' key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
cache-dependency-path: subdir/yarn.lock restore-keys: |
${{ runner.os }}-yarn-
- name: Build and push Docker image - name: Build and push Docker image
id: push id: push