Skip to content

Commit

Permalink
ci: add manual run for docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Jun 11, 2024
1 parent 8de08bb commit 107ec4f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ name: Docker
on:
release:
types: [published]
workflow_dispatch:

permissions: read-all

env:
IMAGE_NAME: ducktors/turborepo-remote-cache

jobs:
docker-build:
name: Docker Build
Expand All @@ -22,10 +26,6 @@ jobs:
uses: martinbeentjes/npm-get-version-action@3cf273023a0dda27efcd3164bdfb51908dd46a5b # main
with:
path: .
- name: Set correct environment
run: |
TAG=${{ steps.package-version.outputs.current-version}}
echo "TAG=$TAG" >> "$GITHUB_ENV"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Login to DockerHub
Expand All @@ -38,9 +38,9 @@ jobs:
docker buildx build \
--file Dockerfile \
--platform linux/amd64,linux/arm64 \
--tag ducktors/turborepo-remote-cache:latest \
--tag ducktors/turborepo-remote-cache:${{ env.TAG }} \
--cache-from=type=gha,ducktors/turborepo-remote-cache:latest \
--tag ${{env.IMAGE_NAME}}:latest \
--tag ${{env.IMAGE_NAME}}:${{ steps.package-version.outputs.current-version}} \
--cache-from=type=gha,${{env.IMAGE_NAME}}:latest \
--cache-to=type=gha,mode=max
--push .
Expand Down

0 comments on commit 107ec4f

Please sign in to comment.