Skip to content

Merge pull request #606 from jwetzell/dependabot/npm_and_yarn/cloud/p… #93

Merge pull request #606 from jwetzell/dependabot/npm_and_yarn/cloud/p…

Merge pull request #606 from jwetzell/dependabot/npm_and_yarn/cloud/p… #93

name: Publish cloud docker image
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'cloud/**'
tags:
- 'cloud/v*'
jobs:
build-cloud-docker:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
jwetzell/showbridge-cloud
tags: |
type=ref,event=branch
type=match,pattern=cloud/v(\d+.\d+.\d+),group=1
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
context: ./cloud/
file: ./cloud/Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64,linux/arm/v7