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 CD error #53

Merged
merged 1 commit into from
Apr 24, 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
17 changes: 14 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
echo "version=$version" >> $GITHUB_OUTPUT
echo "milestone_number=$milestone_number" >> $GITHUB_OUTPUT
echo "delivery=allowed" >> $GITHUB_OUTPUT

release:
name: Release a new version of the docker image
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -114,6 +115,7 @@ jobs:
tag_name: ${{ needs.deliverability.outputs.version }}
release_name: ${{ env.DOCKER_IMAGE_NAME }}:${{ needs.deliverability.outputs.version }}
body_path: changelog.md

push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -154,6 +156,14 @@ jobs:
push: true
tags: ${{ env.DOCKER_IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}

#Push description to current Docker Hub
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
repository: ${{ env.DOCKER_IMAGE_NAME }}

#Push with old name and version number tag
- name: Build and push Docker image to version number
Expand All @@ -174,13 +184,14 @@ jobs:
push: true
tags: lequal/sonarqube:latest
labels: ${{ steps.meta.outputs.labels }}

- name: Update repo description

#Push description to old Docker Hub
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
repository: cnescatlab/docker-cat
repository: lequal/sonarqube

close_milestone:
name: Close milestone
Expand Down