Skip to content

1.4.3

1.4.3 #11

Workflow file for this run

name: Build Image
on:
push:
tags:
- "*"
env:
REGISTRY: ghcr.io
IMAGE_NAME: nodescriptlang/adapter-sql
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Extract TAG env
run: |
ref="${{ github.ref }}"
echo "TAG=${ref/refs\/tags\//}" >> $GITHUB_ENV
- name: Login to the Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push image
uses: docker/build-push-action@v2
with:
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:${{ env.TAG }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}:latest
file: Dockerfile
push: true
build-args: |
VERSION=${{ env.TAG }}
labels: |
source-url=https://github.com/${{ github.repository }}