mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix publish images action (#11258)
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu> Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
This commit is contained in:
parent
8f3bcfac93
commit
fab4e548d4
10
.github/actions/publish_images/action.yml
vendored
10
.github/actions/publish_images/action.yml
vendored
|
@ -30,12 +30,15 @@ runs:
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
- uses: ./.github/actions/setup_environment
|
- uses: ./.github/actions/setup_environment
|
||||||
- if: inputs.dockerfile_path != ""
|
- if: "inputs.dockerfile_path != ''"
|
||||||
run: echo "export DOCKERFILE_PATH=${{ inputs.dockerfile_path }}" >> /tmp/tmp-profile
|
run: echo "export DOCKERFILE_PATH=${{ inputs.dockerfile_path }}" >> /tmp/tmp-profile
|
||||||
- if: inputs.container_image_name != ""
|
shell: bash
|
||||||
|
- if: "inputs.container_image_name != ''"
|
||||||
run: echo "export DOCKER_IMAGE_NAME=${{ inputs.container_image_name }}" >> /tmp/tmp-profile
|
run: echo "export DOCKER_IMAGE_NAME=${{ inputs.container_image_name }}" >> /tmp/tmp-profile
|
||||||
- if: inputs.dockerbuild_context != ""
|
shell: bash
|
||||||
|
- if: "inputs.dockerbuild_context != ''"
|
||||||
run: echo "export DOCKERBUILD_CONTEXT=${{ inputs.dockerbuild_context }}" >> /tmp/tmp-profile
|
run: echo "export DOCKERBUILD_CONTEXT=${{ inputs.dockerbuild_context }}" >> /tmp/tmp-profile
|
||||||
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
touch /tmp/tmp-profile
|
touch /tmp/tmp-profile
|
||||||
. /tmp/tmp-profile
|
. /tmp/tmp-profile
|
||||||
|
@ -44,3 +47,4 @@ runs:
|
||||||
echo ${{ inputs.password }} | docker login -u ${{ inputs.login }} --password-stdin ${{ inputs.registry }}
|
echo ${{ inputs.password }} | docker login -u ${{ inputs.login }} --password-stdin ${{ inputs.registry }}
|
||||||
make docker-publish DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }}
|
make docker-publish DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }}
|
||||||
make docker-manifest DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }}
|
make docker-manifest DOCKER_REPO=${{ inputs.registry }}/${{ inputs.organization }}
|
||||||
|
shell: bash
|
||||||
|
|
10
.github/actions/publish_release_image/action.yml
vendored
10
.github/actions/publish_release_image/action.yml
vendored
|
@ -30,12 +30,15 @@ runs:
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
- uses: ./.github/actions/setup_environment
|
- uses: ./.github/actions/setup_environment
|
||||||
- if: inputs.dockerfile_path != ""
|
- if: "inputs.dockerfile_path != ''"
|
||||||
run: echo "export DOCKERFILE_PATH=${{ inputs.dockerfile_path }}" }} /tmp/tmp-profile
|
run: echo "export DOCKERFILE_PATH=${{ inputs.dockerfile_path }}" }} /tmp/tmp-profile
|
||||||
- if: inputs.container_image_name != ""
|
shell: bash
|
||||||
|
- if: "inputs.container_image_name != ''"
|
||||||
run: echo "export DOCKER_IMAGE_NAME=${{ inputs.container_image_name }}" }} /tmp/tmp-profile
|
run: echo "export DOCKER_IMAGE_NAME=${{ inputs.container_image_name }}" }} /tmp/tmp-profile
|
||||||
- if: inputs.dockerbuild_context != ""
|
shell: bash
|
||||||
|
- if: "inputs.dockerbuild_context != ''"
|
||||||
run: echo "export DOCKERBUILD_CONTEXT=${{ inputs.dockerbuild_context }}" }} /tmp/tmp-profile
|
run: echo "export DOCKERBUILD_CONTEXT=${{ inputs.dockerbuild_context }}" }} /tmp/tmp-profile
|
||||||
|
shell: bash
|
||||||
- run: |
|
- run: |
|
||||||
current_tag=${GITHUB_REF#refs/*/}
|
current_tag=${GITHUB_REF#refs/*/}
|
||||||
touch /tmp/tmp-profile
|
touch /tmp/tmp-profile
|
||||||
|
@ -50,3 +53,4 @@ runs:
|
||||||
make docker-publish DOCKER_IMAGE_TAG="latest" DOCKER_REPO=${{ input.registry }}/${{ input.organization }}
|
make docker-publish DOCKER_IMAGE_TAG="latest" DOCKER_REPO=${{ input.registry }}/${{ input.organization }}
|
||||||
make docker-manifest DOCKER_IMAGE_TAG="latest" DOCKER_REPO=${{ input.registry }}/${{ input.organization }}
|
make docker-manifest DOCKER_IMAGE_TAG="latest" DOCKER_REPO=${{ input.registry }}/${{ input.organization }}
|
||||||
fi
|
fi
|
||||||
|
shell: bash
|
||||||
|
|
Loading…
Reference in a new issue