Update .forgejo/workflows/publish.yml
All checks were successful
Publish Docker image / Push Docker image to Docker Hub (push) Successful in 20s

This commit is contained in:
muerwre 2024-08-16 22:55:26 +07:00
parent df48466c87
commit ec14529ace

View file

@ -36,6 +36,7 @@ jobs:
# node-version: '18' # node-version: '18'
# cache: 'yarn' # cache: 'yarn'
- run: npm -g install yarn - run: npm -g install yarn
- name: Get yarn cache directory path - name: Get yarn cache directory path
id: yarn-cache-dir-path id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
@ -48,12 +49,14 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn- ${{ runner.os }}-yarn-
- name: Build and push Docker image - run: yarn add yup
id: push
uses: docker/build-push-action@v6 # - name: Build and push Docker image
with: # id: push
context: . # uses: docker/build-push-action@v6
file: ./Dockerfile # with:
push: true # context: .
tags: ${{ steps.meta.outputs.tags }} # file: ./Dockerfile
labels: ${{ steps.meta.outputs.labels }} # push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}