Skip to content

chore(release): 1.5.1 #16

chore(release): 1.5.1

chore(release): 1.5.1 #16

Workflow file for this run

name: Build and publish Docker
on:
push:
branches:
- '**'
tags:
- 'v*'
workflow_dispatch:
inputs:
dry-run:
description: 'Skip pushing built images'
type: boolean
default: true
env:
IMAGE_NAME: linode/apl-nodejs-helloworld
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Docker registry
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: CI tests, image build and push
if: startsWith(github.ref, 'refs/tags/')
uses: docker/build-push-action@v6
with:
push: true
context: .
tags: |
${{ env.IMAGE_NAME }}:${{ github.ref_name }}