Skip to content

Merge pull request #911 from jwetzell/dependabot/npm_and_yarn/cloud/i… #113

Merge pull request #911 from jwetzell/dependabot/npm_and_yarn/cloud/i…

Merge pull request #911 from jwetzell/dependabot/npm_and_yarn/cloud/i… #113

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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
- name: Login to Docker Hub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Docker metadata
id: meta
uses: docker/metadata-action@369eb591f429131d6889c46b94e711f089e6ca96 # v5.6.1
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@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
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