Skip to content

Commit

Permalink
Merge pull request #53 from cnescatlab/add_repo_info_push
Browse files Browse the repository at this point in the history
fix CD error
  • Loading branch information
louisjdmartin authored Apr 24, 2024
2 parents e4752da + 2e9a139 commit d2f4163
Showing 1 changed file with 14 additions and 3 deletions.
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

0 comments on commit d2f4163

Please sign in to comment.