From e32016d4a13dadda5e7bb5f68802807b5e97044c Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Tue, 7 Feb 2023 13:46:22 +0100 Subject: [PATCH] .github: set docker repository to apache (#7176) Now the images are pushed to https://hub.docker.com/r/asfjenkins/cloudstack-simulator/tags --- .github/workflows/docker-cloudstack-simulator.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-cloudstack-simulator.yml b/.github/workflows/docker-cloudstack-simulator.yml index ffd11822447..02c677ba7c0 100644 --- a/.github/workflows/docker-cloudstack-simulator.yml +++ b/.github/workflows/docker-cloudstack-simulator.yml @@ -44,6 +44,9 @@ jobs: username: ${{ secrets.DOCKERHUB_USER }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Set Docker repository name + run: echo "DOCKER_REPOSITORY=apache" >> $GITHUB_ENV + - uses: actions/checkout@v3 - name: Set ACS version @@ -53,7 +56,7 @@ jobs: run: echo "TAG=$(if [[ "${ACS_VERSION}" =~ .*-SNAPSHOT ]];then echo ${ACS_VERSION}-$(date +'%Y%m%d-%H%M%S');else echo ${ACS_VERSION};fi)" >> $GITHUB_ENV - name: Set Docker image FULL TAG - run: echo "FULL_TAG=$(if [ "${{ secrets.DOCKER_REGISTRY }}" = "" ];then echo ${{ secrets.DOCKERHUB_USER }}/cloudstack-simulator:${TAG};else echo ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKERHUB_USER }}/cloudstack-simulator:${TAG};fi)" >> $GITHUB_ENV + run: echo "FULL_TAG=$(if [ "${{ secrets.DOCKER_REGISTRY }}" = "" ];then echo ${DOCKER_REPOSITORY}/cloudstack-simulator:${TAG};else echo ${{ secrets.DOCKER_REGISTRY }}/${DOCKER_REPOSITORY}/cloudstack-simulator:${TAG};fi)" >> $GITHUB_ENV - name: Build the Docker image for cloudstack-simulator run: cd tools/docker && docker build ../.. --file Dockerfile --tag ${FULL_TAG}