Skip to content

Commit 33a79fe

Browse files
committed
fix(release): Refactor Docker build process in semantic releases workflow
1 parent 769f2a5 commit 33a79fe

File tree

1 file changed

+1
-55
lines changed

1 file changed

+1
-55
lines changed

.github/workflows/sematic-releases.yml

Lines changed: 1 addition & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
VERSION=$(cat version.txt)
5858
echo "release_version=$VERSION" >> $GITHUB_OUTPUT
5959
fi
60-
gradle:
60+
docker:
6161
name: Build Docker Artifacts
6262
runs-on: ubuntu-latest
6363
needs: release
@@ -78,60 +78,6 @@ jobs:
7878
uses: gradle/actions/setup-gradle@v4
7979
- name: Build Docker Artifacts
8080
run: ./gradlew jar optimizedBuildLayers optimizedDockerfile -Pversion=${{ needs.release.outputs.release_version }}
81-
- name: Upload build artifacts
82-
uses: actions/upload-artifact@v4
83-
with:
84-
name: build
85-
path: backend/build
86-
87-
# dockerNative:
88-
# runs-on: ubuntu-latest
89-
# needs: gradle
90-
# steps:
91-
# - uses: actions/checkout@v4
92-
# - name: Download build artifacts
93-
# uses: actions/download-artifact@v5
94-
# with:
95-
# name: build
96-
# path: backend/build
97-
# - name: Docker meta
98-
# id: meta
99-
# uses: docker/metadata-action@v5
100-
# with:
101-
# images: |
102-
# ${{ secrets.HARBOR_REGISTRY }}/otis/otis-native
103-
# tags: |
104-
# type=semver,pattern={{version}},value=${{ needs.release.outputs.release_version }}
105-
# type=semver,pattern={{major}}.{{minor}},value=${{ needs.release.outputs.release_version }}
106-
# type=semver,pattern={{major}},value=${{ needs.release.outputs.release_version }}
107-
# - name: Log in to OneLiteFeather Harbor
108-
# uses: docker/login-action@v3
109-
# with:
110-
# username: ${{ secrets.HARBOR_USERNAME }}
111-
# password: ${{ secrets.HARBOR_PASSWORD }}
112-
# registry: ${{ secrets.HARBOR_REGISTRY }}
113-
# - name: Set up QEMU
114-
# uses: docker/setup-qemu-action@v3
115-
# - name: Set up Docker Buildx
116-
# uses: docker/setup-buildx-action@v3
117-
# - name: Build and push
118-
# uses: docker/build-push-action@v6
119-
# with:
120-
# push: true
121-
# tags: ${{ steps.meta.outputs.tags }}
122-
# labels: ${{ steps.meta.outputs.labels }}
123-
# context: ./backend/build/docker/native-optimized
124-
125-
docker:
126-
runs-on: ubuntu-latest
127-
needs: gradle
128-
steps:
129-
- uses: actions/checkout@v4
130-
- name: Download build artifacts
131-
uses: actions/download-artifact@v5
132-
with:
133-
name: build
134-
path: backend/build
13581
- name: Docker meta
13682
id: meta
13783
uses: docker/metadata-action@v5

0 commit comments

Comments
 (0)