@@ -73,31 +73,31 @@ jobs:
73
73
working-directory : backend
74
74
files : ./coverage.xml
75
75
76
- frontend-build :
77
- name : Create 'production' build
78
- runs-on : ubuntu-latest
79
-
80
- defaults :
81
- run :
82
- working-directory : ui
83
-
84
- steps :
85
- - uses : actions/checkout@v3
86
- - uses : actions/setup-node@v3
87
- with :
88
- node-version-file : ' ui/.nvmrc'
89
-
90
- - name : Build Javascript
91
- run : |
92
- npm ci --legacy-peer-deps
93
- npm run build
94
-
95
- - name : Store build artifact
96
- uses : actions/upload-artifact@v3
97
- with :
98
- name : open-archiefbeheer-ui-build
99
- path : dist/
100
- retention-days : 1
76
+ # frontend-build:
77
+ # name: Create 'production' build
78
+ # runs-on: ubuntu-latest
79
+ #
80
+ # defaults:
81
+ # run:
82
+ # working-directory: ui
83
+ #
84
+ # steps:
85
+ # - uses: actions/checkout@v3
86
+ # - uses: actions/setup-node@v3
87
+ # with:
88
+ # node-version-file: 'ui/.nvmrc'
89
+ #
90
+ # - name: Build Javascript
91
+ # run: |
92
+ # npm ci --legacy-peer-deps
93
+ # npm run build
94
+ #
95
+ # - name: Store build artifact
96
+ # uses: actions/upload-artifact@v3
97
+ # with:
98
+ # name: open-archiefbeheer-ui-build
99
+ # path: dist/
100
+ # retention-days: 1
101
101
102
102
docs :
103
103
name : Build and check documentation
@@ -120,89 +120,89 @@ jobs:
120
120
run : pytest check_sphinx.py -v --tb=auto
121
121
working-directory : open-archiefbeheer/backend/docs
122
122
123
- docker_build :
124
- name : Build Docker image
125
- runs-on : ubuntu-latest
126
- steps :
127
- - uses : actions/checkout@v3
128
-
129
- - name : Set tag
130
- id : vars
131
- run : |
132
- # Strip git ref prefix from version
133
- VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
134
-
135
- # Strip "v" prefix from tag name (if present at all)
136
- [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
137
-
138
- # Use Docker `latest` tag convention
139
- [ "$VERSION" == "main" ] && VERSION=latest
140
-
141
- # PRs result in version 'merge' -> transform that into 'latest'
142
- [ "$VERSION" == "merge" ] && VERSION=latest
143
-
144
- echo "tag=${VERSION}" >> $GITHUB_OUTPUT
145
- echo "git_hash=${GITHUB_SHA}" >> $GITHUB_OUTPUT
146
-
147
- - name : Build the production Docker image
148
- run : |
149
- docker build . \
150
- --tag $IMAGE_NAME:$RELEASE_VERSION \
151
- --build-arg COMMIT_HASH=${{ steps.vars.outputs.git_hash }} \
152
- --build-arg RELEASE=${{ steps.vars.outputs.tag }} \
153
- env :
154
- RELEASE_VERSION : ${{ steps.vars.outputs.tag }}
155
-
156
- - run : docker image save -o image.tar $IMAGE_NAME:${{ steps.vars.outputs.tag }}
157
- - name : Store image artifact
158
- uses : actions/upload-artifact@v3
159
- with :
160
- name : docker-image
161
- path : image.tar
162
- retention-days : 1
163
-
164
- docker_push :
165
- needs :
166
- - backend-tests
167
- - docker_build
168
-
169
- name : Push Docker image
170
- runs-on : ubuntu-latest
171
- if : github.event_name == 'push' # Exclude PRs
172
-
173
- steps :
174
- # This will include the updated OAS (if updated) from the update-oas job.
175
- - uses : actions/checkout@v3
176
-
177
- - name : Download built image
178
- uses : actions/download-artifact@v3
179
- with :
180
- name : docker-image
181
-
182
- - name : Set tag
183
- id : vars
184
- run : |
185
- # Strip git ref prefix from version
186
- VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
187
-
188
- # Strip "v" prefix from tag name (if present at all)
189
- [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
190
-
191
- # Use Docker `latest` tag convention
192
- [ "$VERSION" == "main" ] && VERSION=latest
193
-
194
- echo "tag=${VERSION}" >> $GITHUB_OUTPUT
195
-
196
- - name : Load image
197
- run : |
198
- docker image load -i image.tar
199
-
200
- - name : Log into registry
201
- run :
202
- echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }}
203
- --password-stdin
204
-
205
- - name : Push the Docker image (production)
206
- run : docker push $IMAGE_NAME:$RELEASE_VERSION
207
- env :
208
- RELEASE_VERSION : ${{ steps.vars.outputs.tag }}
123
+ # docker_build:
124
+ # name: Build Docker image
125
+ # runs-on: ubuntu-latest
126
+ # steps:
127
+ # - uses: actions/checkout@v3
128
+ #
129
+ # - name: Set tag
130
+ # id: vars
131
+ # run: |
132
+ # # Strip git ref prefix from version
133
+ # VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
134
+ #
135
+ # # Strip "v" prefix from tag name (if present at all)
136
+ # [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
137
+ #
138
+ # # Use Docker `latest` tag convention
139
+ # [ "$VERSION" == "main" ] && VERSION=latest
140
+ #
141
+ # # PRs result in version 'merge' -> transform that into 'latest'
142
+ # [ "$VERSION" == "merge" ] && VERSION=latest
143
+ #
144
+ # echo "tag=${VERSION}" >> $GITHUB_OUTPUT
145
+ # echo "git_hash=${GITHUB_SHA}" >> $GITHUB_OUTPUT
146
+ #
147
+ # - name: Build the production Docker image
148
+ # run: |
149
+ # docker build . \
150
+ # --tag $IMAGE_NAME:$RELEASE_VERSION \
151
+ # --build-arg COMMIT_HASH=${{ steps.vars.outputs.git_hash }} \
152
+ # --build-arg RELEASE=${{ steps.vars.outputs.tag }} \
153
+ # env:
154
+ # RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
155
+ #
156
+ # - run: docker image save -o image.tar $IMAGE_NAME:${{ steps.vars.outputs.tag }}
157
+ # - name: Store image artifact
158
+ # uses: actions/upload-artifact@v3
159
+ # with:
160
+ # name: docker-image
161
+ # path: image.tar
162
+ # retention-days: 1
163
+ #
164
+ # docker_push:
165
+ # needs:
166
+ # - backend-tests
167
+ # - docker_build
168
+ #
169
+ # name: Push Docker image
170
+ # runs-on: ubuntu-latest
171
+ # if: github.event_name == 'push' # Exclude PRs
172
+ #
173
+ # steps:
174
+ # # This will include the updated OAS (if updated) from the update-oas job.
175
+ # - uses: actions/checkout@v3
176
+ #
177
+ # - name: Download built image
178
+ # uses: actions/download-artifact@v3
179
+ # with:
180
+ # name: docker-image
181
+ #
182
+ # - name: Set tag
183
+ # id: vars
184
+ # run: |
185
+ # # Strip git ref prefix from version
186
+ # VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
187
+ #
188
+ # # Strip "v" prefix from tag name (if present at all)
189
+ # [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
190
+ #
191
+ # # Use Docker `latest` tag convention
192
+ # [ "$VERSION" == "main" ] && VERSION=latest
193
+ #
194
+ # echo "tag=${VERSION}" >> $GITHUB_OUTPUT
195
+ #
196
+ # - name: Load image
197
+ # run: |
198
+ # docker image load -i image.tar
199
+ #
200
+ # - name: Log into registry
201
+ # run:
202
+ # echo "${{ secrets.DOCKER_TOKEN }}" | docker login -u ${{ secrets.DOCKER_USERNAME }}
203
+ # --password-stdin
204
+ #
205
+ # - name: Push the Docker image (production)
206
+ # run: docker push $IMAGE_NAME:$RELEASE_VERSION
207
+ # env:
208
+ # RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
0 commit comments