-
Notifications
You must be signed in to change notification settings - Fork 19
81 lines (78 loc) · 2.44 KB
/
build-containers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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