Skip to content

Implement improved dup() and copy() (#355) #21

Implement improved dup() and copy() (#355)

Implement improved dup() and copy() (#355) #21

Workflow file for this run

name: Deploy
on:
push:
tags:
- "v*-*" # v1.2.3-alpha0 etc.
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/thingsdb/node
- name: Get the version
id: get_version
run: echo "VERSION=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
- name: Build and push Docker image (gcloud)
uses: docker/build-push-action@v3
with:
context: .
push: true
file: docker/gcloud.Dockerfile
tags: ghcr.io/thingsdb/node:gcloud-${{ steps.get_version.outputs.VERSION }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Docker image (full)
uses: docker/build-push-action@v3
with:
context: .
push: true
file: docker/full.Dockerfile
tags: ghcr.io/thingsdb/node:full-${{ steps.get_version.outputs.VERSION }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build and push Docker image (minimal)
uses: docker/build-push-action@v3
with:
context: .
push: true
file: docker/Dockerfile
tags: ghcr.io/thingsdb/node:${{ steps.get_version.outputs.VERSION }}
labels: ${{ steps.meta.outputs.labels }}