File tree Expand file tree Collapse file tree 2 files changed +25
-31
lines changed Expand file tree Collapse file tree 2 files changed +25
-31
lines changed Original file line number Diff line number Diff line change @@ -223,40 +223,12 @@ jobs:
223
223
docker push cosmwasm/wasmd:latest
224
224
docker logout
225
225
226
- docker-tagged :
227
- executor : golang
228
- steps :
229
- - attach_workspace :
230
- at : /tmp/workspace
231
- - checkout
232
- - setup_remote_docker :
233
- docker_layer_caching : true
234
- - run :
235
- name : Build Docker image
236
- command : docker build --pull -t "cosmwasm/wasmd:${CIRCLE_TAG}" .
237
- - run :
238
- name : Push application Docker image to docker hub
239
- command : |
240
- docker login --password-stdin -u "$DOCKER_USER" \<<<"$DOCKER_PASS"
241
- docker push "cosmwasm/wasmd:${CIRCLE_TAG}"
242
- docker logout
243
-
244
226
workflows :
245
227
test-suite :
246
228
jobs :
247
229
- docker-image :
248
230
requires :
249
231
- setup-dependencies
250
- - docker-tagged :
251
- filters :
252
- tags :
253
- only :
254
- - /^v.*/
255
- branches :
256
- ignore :
257
- - /.*/
258
- requires :
259
- - setup-dependencies
260
232
- setup-dependencies :
261
233
# filters here are needed to enable this job also for tags
262
234
filters :
Original file line number Diff line number Diff line change 8
8
permissions :
9
9
contents : write
10
10
11
+ env :
12
+ IMAGE_NAME : cosmwasm/wasmd
13
+
11
14
jobs :
12
15
release :
13
16
runs-on : ubuntu-latest
14
17
steps :
15
18
- name : Checkout code
16
19
uses : actions/checkout@v4
17
20
21
+ - name : Set up Docker
22
+ uses : docker/setup-buildx-action@v3
23
+
24
+ - name : Build Docker image
25
+ run : |
26
+ TAG=${{ github.ref_name }}
27
+ docker build --pull -t $IMAGE_NAME:$TAG .
28
+
29
+ - name : Push Docker image
30
+ env :
31
+ DOCKER_USER : ${{ secrets.DOCKERHUB_USERNAME }}
32
+ DOCKER_PASS : ${{ secrets.DOCKERHUB_TOKEN }}
33
+ run : |
34
+ TAG=${{ github.ref_name }}
35
+ echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
36
+ docker push $IMAGE_NAME:$TAG
37
+ docker logout
38
+
18
39
- name : Draft GitHub release
19
40
env :
20
41
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
42
run : |
22
- gh release create "${GITHUB_REF_NAME}" \
23
- --title "${GITHUB_REF_NAME}" \
43
+ TAG=${{ github.ref_name }}
44
+ gh release create "$TAG" \
45
+ --title "$TAG" \
24
46
--draft \
25
- --notes "See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${GITHUB_REF_NAME} /CHANGELOG.md) for details on the changes in this version."
47
+ --notes "See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/$TAG /CHANGELOG.md) for details on the changes in this version."
You can’t perform that action at this time.
0 commit comments