Skip to content

chore(chart): bump appVersion to 1.2.2 and image tag #157

chore(chart): bump appVersion to 1.2.2 and image tag

chore(chart): bump appVersion to 1.2.2 and image tag #157

Workflow file for this run

name: Docker Publish
on:
push:
tags:
- 'v*.*.*'
branches:
- main
paths:
- 'docker/Dockerfile'
- 'src/**'
- 'prisma/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/docker-publish.yml'
workflow_dispatch:
inputs:
tag:
description: 'Optional tag to use (e.g., v1.0.0). If not provided, uses latest from main.'
required: false
type: string
env:
DOCKER_IMAGE: drumsergio/pumperly
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Log into Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v6
with:
images: ${{ env.DOCKER_IMAGE }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{raw}}
type=raw,value=${{ github.event.inputs.tag }},enable=${{ github.event.inputs.tag != '' }}
type=sha,prefix={{branch}}-,enable=${{ github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') }}
- name: Build and push Docker image
uses: docker/build-push-action@v7
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max