Skip to content

v1.14.5

v1.14.5 #30

Workflow file for this run

name: Docker
on:
release:
types: [published]
jobs:
docker-build:
name: Docker Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get package version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
with:
path: .
- name: Set correct environment
run: |
TAG=${{ steps.package-version.outputs.current-version}}
echo "TAG=$TAG" >> "$GITHUB_ENV"
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ducktors/turborepo-remote-cache
flavor: latest=false
tags: type=raw,value=${{ env.TAG }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/x86_64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
cache-from: |
ducktors/turborepo-remote-cache:latest