Skip to content

Commit b4b1604

Browse files
committed
Updating the docker-release file
Signed-off-by: Anushka <anush159@in.ibm.com>
1 parent a914af7 commit b4b1604

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/docker-release.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Copyright IBM Corp. All Rights Reserved.
2-
#
3-
# SPDX-License-Identifier: Apache-2.0
4-
#
51
name: Release Fabric-X Committer Docker Image
62

73
on:
84
push:
95
tags:
106
- "v*" # Trigger on tags like v0.0.1
117

8+
permissions:
9+
contents: read
10+
packages: write
11+
1212
jobs:
1313
docker-release:
1414
runs-on: ubuntu-latest
@@ -33,11 +33,19 @@ jobs:
3333
id: extract
3434
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
3535

36-
- name: Build and push multi-platform Docker image
36+
- name: Set up Go
37+
uses: actions/setup-go@v5
38+
with:
39+
go-version: '1.21'
40+
41+
- name: Build cross-architecture binaries
42+
run: make build-arch
43+
44+
- name: Build and Push Multi-Platform Docker Image for Committer
3745
uses: docker/build-push-action@v6
3846
with:
3947
context: .
40-
file: docker/images/release/Dockerfile
48+
file: ./docker/images/release/Dockerfile
4149
platforms: linux/amd64,linux/arm64,linux/s390x
4250
push: true
4351
build-args: |

0 commit comments

Comments
 (0)