Skip to content

Build & publish CocktailBerry image version latest #1

Build & publish CocktailBerry image version latest

Build & publish CocktailBerry image version latest #1

Workflow file for this run

name: Manual Build & publish
run-name: Build & publish CocktailBerry ${{ github.event.inputs.service }} image version ${{ github.event.inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: 'Version of the image'
required: true
default: 'latest'
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: ⤵️ Check out code from GitHub
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: 🐳 Log in to the Container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 🐳 Build and push Docker image
uses: docker/build-push-action@v5
with:
context: ./
file: ./Dockerfile
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: andrewo92/website-backend:${{ github.event.inputs.version }}