mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
upgrade test: use docker.mirror.hashicorp.services to avoid docker login (#17186)
* upgrade test: use docker.mirror.hashicorp.services to avoid docker login * upgrade tests: remove docker login Signed-off-by: Dan Bond <danbond@protonmail.com> --------- Signed-off-by: Dan Bond <danbond@protonmail.com> Co-authored-by: Dan Bond <danbond@protonmail.com>
This commit is contained in:
parent
83ad0dfa74
commit
db253b6395
32
.github/workflows/test-integrations.yml
vendored
32
.github/workflows/test-integrations.yml
vendored
@ -324,7 +324,7 @@ jobs:
|
|||||||
${{ matrix.test-cases }} \
|
${{ matrix.test-cases }} \
|
||||||
--target-image ${{ env.CONSUL_LATEST_IMAGE_NAME }} \
|
--target-image ${{ env.CONSUL_LATEST_IMAGE_NAME }} \
|
||||||
--target-version local \
|
--target-version local \
|
||||||
--latest-image ${{ env.CONSUL_LATEST_IMAGE_NAME }} \
|
--latest-image docker.mirror.hashicorp.services/${{ env.CONSUL_LATEST_IMAGE_NAME }} \
|
||||||
--latest-version latest
|
--latest-version latest
|
||||||
ls -lrt
|
ls -lrt
|
||||||
env:
|
env:
|
||||||
@ -376,9 +376,6 @@ jobs:
|
|||||||
|
|
||||||
upgrade-integration-test:
|
upgrade-integration-test:
|
||||||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }}
|
runs-on: ${{ fromJSON(needs.setup.outputs.compute-xl) }}
|
||||||
permissions:
|
|
||||||
id-token: write # NOTE: this permission is explicitly required for Vault auth.
|
|
||||||
contents: read
|
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
- dev-build
|
- dev-build
|
||||||
@ -397,33 +394,6 @@ jobs:
|
|||||||
go-version-file: 'go.mod'
|
go-version-file: 'go.mod'
|
||||||
- run: go env
|
- run: go env
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
|
||||||
- name: Authenticate to Vault
|
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
||||||
id: vault-auth
|
|
||||||
run: vault-auth
|
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
|
||||||
- name: Fetch Secrets
|
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
||||||
id: secrets
|
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
|
||||||
with:
|
|
||||||
url: ${{ steps.vault-auth.outputs.addr }}
|
|
||||||
caCertificate: ${{ steps.vault-auth.outputs.ca_certificate }}
|
|
||||||
token: ${{ steps.vault-auth.outputs.token }}
|
|
||||||
secrets: |
|
|
||||||
kv/data/github/${{ github.repository }}/dockerhub username | DOCKERHUB_USERNAME;
|
|
||||||
kv/data/github/${{ github.repository }}/dockerhub token | DOCKERHUB_TOKEN;
|
|
||||||
|
|
||||||
# NOTE: conditional specific logic as we store secrets in Vault in ENT and use GHA secrets in OSS.
|
|
||||||
- name: Login to Docker Hub
|
|
||||||
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a # pin@v2.1.0
|
|
||||||
with:
|
|
||||||
username: ${{ endsWith(github.repository, '-enterprise') && steps.secrets.outputs.DOCKERHUB_USERNAME || secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ endsWith(github.repository, '-enterprise') && steps.secrets.outputs.DOCKERHUB_TOKEN || secrets.DOCKERHUB_TOKEN }}
|
|
||||||
|
|
||||||
|
|
||||||
# Get go binary from workspace
|
# Get go binary from workspace
|
||||||
- name: fetch binary
|
- name: fetch binary
|
||||||
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user