Skip to content

Commit

Permalink
ci: Update release process for mesosphere fork
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Jun 20, 2024
1 parent 54c8e46 commit 3fdceef
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
echo "RELEASE_BRANCH=$RELEASE_BRANCH" >> $GITHUB_ENV
echo "This is a beta or alpha release, will use release branch $RELEASE_BRANCH"
else
export RELEASE_BRANCH=release-$(echo $RELEASE_VERSION | sed -E 's/^v([0-9]+)\.([0-9]+)\..*$/\1.\2/')
export RELEASE_BRANCH=d2iq/release-$(echo $RELEASE_VERSION | sed -E 's/^v([0-9]+)\.([0-9]+)\..*$/\1.\2/')
echo "RELEASE_BRANCH=$RELEASE_BRANCH" >> $GITHUB_ENV
echo "This is not a beta or alpha release, will use release branch $RELEASE_BRANCH"
fi
Expand Down Expand Up @@ -83,9 +83,15 @@ jobs:
needs: push_release_tags
steps:
- name: Set env
run: echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
run: |
echo "RELEASE_TAG=${RELEASE_TAG}" >> $GITHUB_ENV
echo "REGISTRY=${REGISTRY}" >> $GITHUB_ENV
echo "PROD_REGISTRY=${REGISTRY}" >> $GITHUB_ENV
echo "STAGING_REGISTRY=${REGISTRY}" >> $GITHUB_ENV
echo "TAG=${RELEASE_TAG}" >> $GITHUB_ENV
env:
RELEASE_TAG: ${{needs.push_release_tags.outputs.release_tag}}
REGISTRY: docker.io/mesosphere
- name: checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag=v4.1.7
with:
Expand All @@ -111,3 +117,11 @@ jobs:
files: out/*
body_path: ${{ env.RELEASE_TAG }}.md
tag_name: ${{ env.RELEASE_TAG }}
- name: Login to Dockerhub Registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push docker images
run: |
make ALL_ARCH="amd64 arm64" release-staging

0 comments on commit 3fdceef

Please sign in to comment.