-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
68 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,10 +169,10 @@ jobs: | |
EXPECTED="Mach-O 64-bit executable arm64" | ||
fi | ||
fi | ||
echo "Output: $OUTPUT" | ||
echo "Expected: $EXPECTED" | ||
if [[ "$OUTPUT" == *"$EXPECTED"* ]]; then | ||
echo "The binary format is correct." | ||
else | ||
|
@@ -226,69 +226,69 @@ jobs: | |
source-dir: ${{ steps.prepare-r2-release.outputs.release-dir }} | ||
destination-dir: ${{ steps.prepare-r2-release.outputs.r2-destination-dir }} | ||
|
||
release-docker: | ||
runs-on: ubuntu-22.04 | ||
needs: extract-semver | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
ref: ${{ github.event.inputs.tag }} | ||
submodules: recursive | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Build and push docker images | ||
env: | ||
PLATFORM: linux/amd64 | ||
SEMVER: ${{ needs.extract-semver.outputs.semver }} | ||
run: | | ||
make build-push-docker-images | ||
combine-sign: | ||
needs: [ release-docker, extract-semver ] | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
steps: | ||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: 'v2.2.2' | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Create multiarch manifest | ||
env: | ||
SEMVER: ${{ needs.extract-semver.outputs.semver }} | ||
run: | | ||
docker buildx imagetools create -t axelarnet/axelar-ampd:${SEMVER} \ | ||
axelarnet/axelar-ampd-linux-amd64:${SEMVER} | ||
- name: Sign the images with GitHub OIDC | ||
run: cosign sign -y --oidc-issuer https://token.actions.githubusercontent.com ${TAGS} | ||
env: | ||
TAGS: axelarnet/axelar-ampd:${{ needs.extract-semver.outputs.semver }} | ||
COSIGN_EXPERIMENTAL: 1 | ||
release-docker: | ||
runs-on: ubuntu-22.04 | ||
needs: extract-semver | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
ref: ${{ github.event.inputs.tag }} | ||
submodules: recursive | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Build and push docker images | ||
env: | ||
PLATFORM: linux/amd64 | ||
SEMVER: ${{ needs.extract-semver.outputs.semver }} | ||
run: | | ||
make build-push-docker-images | ||
combine-sign: | ||
needs: [ release-docker, extract-semver ] | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
contents: write | ||
packages: write | ||
id-token: write | ||
steps: | ||
- name: Install Cosign | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: 'v2.2.2' | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_TOKEN }} | ||
|
||
- name: Create multiarch manifest | ||
env: | ||
SEMVER: ${{ needs.extract-semver.outputs.semver }} | ||
run: | | ||
docker buildx imagetools create -t axelarnet/axelar-ampd:${SEMVER} \ | ||
axelarnet/axelar-ampd-linux-amd64:${SEMVER} | ||
- name: Sign the images with GitHub OIDC | ||
run: cosign sign -y --oidc-issuer https://token.actions.githubusercontent.com ${TAGS} | ||
env: | ||
TAGS: axelarnet/axelar-ampd:${{ needs.extract-semver.outputs.semver }} | ||
COSIGN_EXPERIMENTAL: 1 |