1818 filepath : ${{ steps.generate-metadata-file.outputs.filepath }}
1919 product-version : ${{ steps.product-metadata.outputs.product-version }}
2020 steps :
21- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
21+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2222 - id : product-metadata
2323 run : |
2424 make version
2828 with :
2929 version : ${{ steps.product-metadata.outputs.product-version }}
3030 product : ${{ env.PKG_NAME }}
31- - uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
31+ - uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
3232 with :
3333 name : metadata.json
3434 path : ${{ steps.generate-metadata-file.outputs.filepath }}
4141 outputs :
4242 profile-path : ${{ steps.final-profile.outputs.profile-path }}
4343 steps :
44- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
45- - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 .0.1
44+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
45+ - uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 .0.0
4646 with :
4747 go-version-file : go.mod
4848 - id : product-metadata
8181 matrix :
8282 goos : [linux, darwin]
8383 goarch : [amd64, arm64]
84+ include :
85+ - goos : linux
86+ goarch : s390x
8487 fail-fast : true
8588 name : Go ${{ matrix.goos }} ${{ matrix.goarch }} build
8689 env :
@@ -89,11 +92,11 @@ jobs:
8992 outputs :
9093 artifact-name : ${{ steps.build.outputs.artifact-name }}
9194 steps :
92- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
93- - uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5 .0.1
95+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
96+ - uses : actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6 .0.0
9497 with :
9598 go-version-file : go.mod
96- - uses : actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
99+ - uses : actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
97100 id : download
98101 with :
99102 name : ${{ needs.profile-binary.outputs.profile-path }}
@@ -106,13 +109,13 @@ jobs:
106109 pgo : true
107110 version : ${{ needs.product-metadata.outputs.product-version }}
108111 - name : Upload Artifacts
109- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
112+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
110113 with :
111114 name : ${{ steps.build.outputs.artifact-name }}
112115 path : ${{ steps.build.outputs.artifact-path }}
113116 retention-days : 1
114117 - if : ${{ matrix.goos == 'linux' }}
115- uses : hashicorp/actions-packaging-linux@v1
118+ uses : hashicorp/actions-packaging-linux@129994a18b8e7dc106937edf859fddd97af66365 # v1.10
116119 with :
117120 name : ${{ github.event.repository.name }}
118121 description : " enos CLI package"
@@ -125,19 +128,19 @@ jobs:
125128 deb_depends : " openssl"
126129 rpm_depends : " openssl"
127130 - name : Set Package Names
128- if : ${{ matrix.goos == 'linux' }}
131+ if : ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
129132 run : |
130133 echo "RPM_PACKAGE=$(basename out/*.rpm)" >> "$GITHUB_ENV"
131134 echo "DEB_PACKAGE=$(basename out/*.deb)" >> "$GITHUB_ENV"
132135 - name : Upload RHEL Packages
133- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
134- if : ${{ matrix.goos == 'linux' }}
136+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
137+ if : ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
135138 with :
136139 name : ${{ env.RPM_PACKAGE }}
137140 path : out/${{ env.RPM_PACKAGE }}
138141 - name : Upload Debian Packages
139- uses : actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
140- if : ${{ matrix.goos == 'linux' }}
142+ uses : actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
143+ if : ${{ matrix.goos == 'linux' && matrix.goarch != 's390x' }}
141144 with :
142145 name : ${{ env.DEB_PACKAGE }}
143146 path : out/${{ env.DEB_PACKAGE }}
@@ -150,15 +153,15 @@ jobs:
150153 runs-on : ubuntu-latest
151154 strategy :
152155 matrix :
153- arch : ["arm64", "amd64"]
156+ arch : ["arm64", "amd64", "s390x" ]
154157 env :
155158 repo : ${{github.event.repository.name}}
156159 version : ${{needs.product-metadata.outputs.product-version}}
157160 GOPRIVATE : ' github.com/hashicorp/*'
158161 TOKEN : ${{ secrets.ELEVATED_GITHUB_TOKEN }}
159162 steps :
160- - uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
161- - uses : hashicorp/actions-docker-build@v2
163+ - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
164+ - uses : hashicorp/actions-docker-build@200254326a30d7b747745592f8f4d226bbe4abe4 # v2.2.0
162165 with :
163166 version : ${{env.version}}
164167 target : default
0 commit comments