Skip to content

Merge pull request #182 from FlowFuse/release-2.12.0 #55

Merge pull request #182 from FlowFuse/release-2.12.0

Merge pull request #182 from FlowFuse/release-2.12.0 #55

name: Build and push containers
on:
push:
tags:
- "v*.*.*"
jobs:
build_application_container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'flowforge/docker-compose'
fetch-depth: 0
path: 'docker-compose'
- name: Docker Meta Data
id: meta
uses: docker/metadata-action@v5
with:
tags: |
type=semver,event=tag,pattern={{version}}
flavor: |
latest=true
images: |
flowforge/forge-docker
flowfuse/forge-docker
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: docker login
uses: docker/login-action@v3
with:
username: flowforge
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Build and push FlowForge Application container
uses: docker/build-push-action@v6
with:
context: docker-compose/flowforge-docker
file: docker-compose/flowforge-docker/Dockerfile
platforms: linux/amd64, linux/arm64, linux/arm/v7
tags: ${{ steps.meta.outputs.tags }}
push: true
- name: Push README
uses: peter-evans/dockerhub-description@v4
with:
repository: flowforge/forge-docker
username: flowforge
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
readme-filepath: docker-compose/README.md
- name: Push README flowfuse
uses: peter-evans/dockerhub-description@v4
with:
repository: flowfuse/forge-docker
username: flowfuse
password: ${{ secrets.DOCKER_HUB_PASSWORD_FLOWFUSE }}
readme-filepath: docker-compose/README.md
- name: Resync Maintenance
if: ${{ endsWith(github.ref, '.0') }}
run: |
cd docker-compose
git checkout maintenance
git reset --hard origin/main
git push --force origin maintenance
release-compose-files:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
repository: 'flowforge/docker-compose'
- name: Add assets to the release
uses: softprops/action-gh-release@v2
with:
files: |
docker-compose.yml
docker-compose-quick-start.yml