-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (60 loc) · 2.39 KB
/
release_ce.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
name: Release CE to DockerHub
on:
workflow_dispatch:
inputs:
version:
description: 'Version of Flex'
required: true
manifest:
description: 'URL of Manifest'
required: true
release_number_bump:
description: 'I have updated system.clj release number!'
required: true
default: 'false'
jobs:
TagAndUpdateReleasesEdn:
runs-on: ubuntu-latest
name: Tag and update releases.edn
steps:
- uses: actions/checkout@v3
- name: Check that we have bumped release number
run: |
./scripts/release_number_check.sh ${{github.event.inputs.release_number_bump}}
- name: Download and verify JAR(s)
run: |
./scripts/jar.sh "${{github.event.inputs.manifest}}"
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
-
# Add support for more platforms with QEMU (optional)
# https://github.com/docker/setup-qemu-action
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and Push to DockerHub
run: |
NEXT_RELEASE=${{github.event.inputs.version}}
docker buildx build -f ./dockerfile/flex-ce/Dockerfile --platform=linux/amd64,linux/arm64 -t factorhouse/flex-ce:latest --push .
docker buildx build -f ./dockerfile/flex-ce/Dockerfile --platform=linux/amd64,linux/arm64 -t factorhouse/flex-ce:$NEXT_RELEASE --push .
- name: Install babashka
run: sudo bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
# - name: Update releases-flex-ce.edn
# run: ./scripts/release.clj ${{github.event.inputs.version}} releases-flex-ce.edn
- name: Commit
run: |
git config --global user.email "[email protected]"
git config --global user.name "Flex CI"
git commit -am "Release Community ${{github.event.inputs.version}}"
- name: Tag
run: git tag -a ce/${{github.event.inputs.version}} -m "Release Community ${{github.event.inputs.version}}"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}