Skip to content

Commit c199fa2

Browse files
committed
Fix for removing plugins from the Docker Image (CONNECTORS-1783) and GitHub workflow
1 parent 63468ee commit c199fa2

1 file changed

Lines changed: 15 additions & 25 deletions

File tree

.github/workflows/create-release-candidate.yml

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Checkout
3939
uses: actions/checkout@v6.0.2
40-
40+
4141
- name: Set up OpenJDK 21 Temurin x64
4242
uses: actions/setup-java@v5.2.0
4343
with:
@@ -46,7 +46,7 @@ jobs:
4646
architecture: x64
4747
cache: maven
4848
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
49-
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
49+
gpg-passphrase: GPG_PASSPHRASE
5050

5151
- name: Get Maven POM version
5252
id: mavenProjectVersion
@@ -77,7 +77,7 @@ jobs:
7777
- name: Set Branch Tag output
7878
id: branchTag
7979
run: echo "tag=${{ steps.branchVersion.outputs.version }}${{ github.event.inputs.releasecandidatetag }}" >> $GITHUB_OUTPUT
80-
80+
8181
- name: Create new release candidate branch
8282
run: |
8383
git branch release-${{ steps.branchTag.outputs.tag }}
@@ -88,31 +88,27 @@ jobs:
8888
run: mvn versions:set -DnewVersion=${{ steps.mavenProjectVersion.outputs.version }} -DremoveSnapshot -DgenerateBackupPoms=false
8989

9090
- name: Update Ant script with the new RC version
91-
run: sed -i -e 's|${{ steps.releaseVersion.outputs.version }}-dev|${{ steps.releaseVersion.outputs.version }}|g' build.xml;
91+
run: sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/${{ steps.releaseVersion.outputs.version }}/g' build.xml;
9292

9393
- name: Update CHANGES.txt
9494
run: sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/Release ${{ steps.releaseVersion.outputs.version }}/g' CHANGES.txt;
9595

9696
- name: Ant Build
9797
run: ant make-core-deps make-deps image
98-
env:
99-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
10098

10199
- name: Maven Build
102100
run: mvn clean install -B -DskipTests -DskipITs
103-
env:
104-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
105101

106102
- name: Update MCF version in the properties.xml files
107103
run: |
108-
sed -i -e 's|${{ steps.releaseVersion.outputs.version }}-dev|${{ steps.releaseVersion.outputs.version }}|g' dist/example/properties.xml;
109-
sed -i -e 's|${{ steps.releaseVersion.outputs.version }}-dev|${{ steps.releaseVersion.outputs.version }}|g' dist/example-proprietary/properties.xml;
110-
sed -i -e 's|${{ steps.releaseVersion.outputs.version }}-dev|${{ steps.releaseVersion.outputs.version }}|g' dist/multiprocess-file-example/properties.xml;
111-
sed -i -e 's|${{ steps.releaseVersion.outputs.version }}-dev|${{ steps.releaseVersion.outputs.version }}|g' dist/multiprocess-file-example-proprietary/properties.xml;
112-
104+
sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/${{ steps.releaseVersion.outputs.version }}/g' dist/example/properties.xml;
105+
sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/${{ steps.releaseVersion.outputs.version }}/g' dist/example-proprietary/properties.xml;
106+
sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/${{ steps.releaseVersion.outputs.version }}/g' dist/multiprocess-file-example/properties.xml;
107+
sed -i 's/${{ steps.releaseVersion.outputs.version }}-dev/${{ steps.releaseVersion.outputs.version }}/g' dist/multiprocess-file-example-proprietary/properties.xml;
108+
113109
- name: Update Docker Image tag
114-
run: sed -i -e 's/SNAPSHOT/${{ github.event.inputs.releasecandidatetag }}/g' Dockerfile;
115-
110+
run: sed -i 's/SNAPSHOT/${{ github.event.inputs.releasecandidatetag }}/g' Dockerfile;
111+
116112
- name: RAT licence checks
117113
run: mvn -pl . apache-rat:check
118114

@@ -125,13 +121,7 @@ jobs:
125121
- name: Commit and Push
126122
run: |
127123
find . -name 'pom.xml' -exec git add {} \;
128-
git add CHANGES.txt \
129-
git add build.xml \
130-
git add Dockerfile
131-
git add dist/example/properties.xml
132-
git add dist/example-proprietary/properties.xml
133-
git add dist/multiprocess-file-example/properties.xml
134-
git add dist/multiprocess-file-example-proprietary/properties.xml
124+
git add CHANGES.txt build.xml Dockerfile
135125
git commit -am "Create ${{ github.event.inputs.releasecandidatetag }} tag for MCF ${{ steps.mavenProjectVersion.outputs.version }}"
136126
git push
137127
@@ -299,7 +289,7 @@ jobs:
299289

300290
- name: Docker meta
301291
id: meta
302-
uses: docker/metadata-action@v6.0.0
292+
uses: docker/metadata-action@v5.6.1
303293
with:
304294
images: apache/manifoldcf
305295
labels: |
@@ -314,9 +304,9 @@ jobs:
314304
org.opencontainers.image.documentation=https://hub.docker.com/r/apache/manifoldcf
315305
org.opencontainers.image.version=${{ steps.branchTag.outputs.tag }}
316306
org.opencontainers.image.licenses=Apache-2.0
317-
307+
318308
- name: Build and push ManifoldCF Docker Image
319-
uses: docker/build-push-action@v7.0.0
309+
uses: docker/build-push-action@v6.10.0
320310
with:
321311
context: .
322312
file: Dockerfile

0 commit comments

Comments
 (0)