Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Experimental Releases #9078

Merged
merged 3 commits into from
Jul 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions .github/workflows/cd-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,9 @@ jobs:

outputs:
server_version: ${{ steps.release_metadata.outputs.server_version }}
short_server_version: ${{ steps.release_metadata.outputs.short_server_version }}

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.release_branch }}

# actions/setup-python doesn't yet support ARM
- name: Setup Python on x64
if: ${{ !endsWith(matrix.runner, '-arm64') }}
Expand Down Expand Up @@ -82,6 +79,10 @@ jobs:
sudo apt-get update
sudo apt-get install git -y

- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.release_branch }}

- name: Check python version
run: |
python --version
Expand All @@ -104,7 +105,8 @@ jobs:
echo "release_platform=linux/arm64" >> $GITHUB_OUTPUT
echo "short_release_platform=arm64" >> $GITHUB_OUTPUT
fi
echo "server_version=${{ github.event.inputs.release_version }}+${{github.events.inputs.release_id}}.$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
echo "server_version=${{ github.event.inputs.release_version }}+${{ github.event.inputs.release_id }}.$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
echo "short_server_version=${{ github.event.inputs.release_version }}" >> $GITHUB_OUTPUT

- name: Bump to Final Release version
run: |
Expand Down Expand Up @@ -249,35 +251,35 @@ jobs:
working-directory: /tmp/digests/syft-backend
run: |
docker buildx imagetools create \
-t openmined/syft-backend:${{ needs.build-and-push-docker-images.outputs.server_version }} \
-t openmined/syft-backend:${{ needs.build-and-push-docker-images.outputs.short_server_version }} \
$(printf 'openmined/syft-backend@sha256:%s ' *)

- name: Create manifest list and push for syft-frontend
working-directory: /tmp/digests/syft-frontend
run: |
docker buildx imagetools create \
-t openmined/syft-frontend:${{ needs.build-and-push-docker-images.outputs.server_version }} \
-t openmined/syft-frontend:${{ needs.build-and-push-docker-images.outputs.short_server_version }} \
$(printf 'openmined/syft-frontend@sha256:%s ' *)

- name: Create manifest list and push for syft-seaweedfs
working-directory: /tmp/digests/syft-seaweedfs
run: |
docker buildx imagetools create \
-t openmined/syft-seaweedfs:${{ needs.build-and-push-docker-images.outputs.server_version }} \
-t openmined/syft-seaweedfs:${{ needs.build-and-push-docker-images.outputs.short_server_version }} \
$(printf 'openmined/syft-seaweedfs@sha256:%s ' *)

- name: Create manifest list and push for syft-enclave-attestation
working-directory: /tmp/digests/syft-enclave-attestation
run: |
docker buildx imagetools create \
-t openmined/syft-enclave-attestation:${{ needs.build-and-push-docker-images.outputs.server_version }} \
-t openmined/syft-enclave-attestation:${{ needs.build-and-push-docker-images.outputs.short_server_version }} \
$(printf 'openmined/syft-enclave-attestation@sha256:%s ' *)

- name: Create manifest list and push for syft client
working-directory: /tmp/digests/syft
run: |
docker buildx imagetools create \
-t openmined/syft-client:${{ needs.build-and-push-docker-images.outputs.server_version }} \
-t openmined/syft-client:${{ needs.build-and-push-docker-images.outputs.short_server_version }} \
$(printf 'openmined/syft-client@sha256:%s ' *)

deploy-syft:
Expand Down
Loading