Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nacx committed Mar 1, 2024
1 parent ec35452 commit a9a4db8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make docker e2e/${{ matrix.group }}
- name: Upload e2e logs on failure
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -120,11 +115,6 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- run: make docker e2e/legacy
- name: Upload e2e logs on failure
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion e2e/keycloak/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ services:
condition: service_completed_successfully
idp-proxy:
condition: service_started
image: gcr.io/tetrate-internal-containers/authservice:latest-${ARCH:-amd64}
image: ${DOCKER_HUB}/authservice:latest-${ARCH:-amd64}
platform: linux/${ARCH:-amd64}
volumes:
- type: bind
Expand Down
2 changes: 1 addition & 1 deletion e2e/mock/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ services:

# This is the `authservice` image that should be up-to-date when running the tests.
ext-authz:
image: gcr.io/tetrate-internal-containers/authservice:latest-${ARCH:-amd64}
image: ${DOCKER_HUB}/authservice:latest-${ARCH:-amd64}
platform: linux/${ARCH:-amd64}
volumes:
- type: bind
Expand Down
5 changes: 3 additions & 2 deletions env.mk
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ ENVTEST ?= sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
NAME ?= authservice
TARGETS ?= linux-amd64 linux-arm64 #darwin-amd64 darwin-arm64

DOCKER_HUB ?= $(GO_MODULE:github.com/%=ghcr.io/%)
# DOCKER_HUB is exported so that it can be referenced in e2e docker compose files
export DOCKER_HUB ?= $(GO_MODULE:github.com/%=ghcr.io/%)
DOCKER_TARGETS ?= linux-amd64 linux-arm64
DOCKER_BUILDER_NAME ?= $(NAME)-builder

ifneq ($(strip $(VERSION)),)
# Remove the suffix as we want N.N.N instead of vN.N.N
DOCKER_TAG ?= $(strip $(VERSION:v%=%))
EXPORT DOCKER_TAG ?= $(strip $(VERSION:v%=%))
else
DOCKER_TAG ?= $(shell git rev-parse HEAD)
endif
Expand Down

0 comments on commit a9a4db8

Please sign in to comment.