Skip to content

Commit

Permalink
Merge pull request #3658 from telepresenceio/thallgren/use-ghcr-for-t…
Browse files Browse the repository at this point in the history
…est-images

Use ghcr.io instead of docker.io for test images.
  • Loading branch information
thallgren authored Jul 31, 2024
2 parents f62785b + 337e79f commit 6803672
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 11 deletions.
11 changes: 8 additions & 3 deletions build-aux/main.mk
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,11 @@ push-image: push-tel2-image

.PHONY: push-test-images
push-test-images:
docker buildx build --platform=linux/amd64,linux/arm64 --push --tag docker.io/telepredocker buildx build --platform=linux/amd64,linux/arm64 --push --tag docker.io/telepresenceio/echo-server:latest --tag docker.io/telepresenceio/echo-server:0.1.0 .
docker buildx build --platform=linux/amd64,linux/arm64 --push --tag docker.io/telepredocker buildx build --platform=linux/amd64,linux/arm64 --push --tag docker.io/telepresenceio/udp-echo:latest --tag docker.io/telepresenceio/udp-echo:0.1.0 .

(cd integration_test/testdata/echo-server && \
docker buildx build --platform=linux/amd64,linux/arm64 --push \
--tag ghcr.io/telepresenceio/echo-server:latest \
--tag ghcr.io/telepresenceio/echo-server:0.1.0 .)
(cd integration_test/testdata/udp-echo && \
docker buildx build --platform=linux/amd64,linux/arm64 --push \
--tag ghcr.io/telepresenceio/udp-echo:latest \
--tag ghcr.io/telepresenceio/udp-echo:0.1.0 .)
2 changes: 1 addition & 1 deletion integration_test/testdata/k8s/echo-double-one-unnamed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: echo-server
image: docker.io/telepresenceio/echo-server:latest
image: ghcr.io/telepresenceio/echo-server:latest
ports:
- containerPort: 8080
- containerPort: 8081
Expand Down
4 changes: 2 additions & 2 deletions integration_test/testdata/k8s/echo-extra-udp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
spec:
containers:
- name: echo-udp-server
image: docker.io/telepresenceio/udp-echo:latest
image: ghcr.io/telepresenceio/udp-echo:latest
env:
- name: PORT
value: "8080"
Expand All @@ -39,7 +39,7 @@ spec:
cpu: 50m
memory: 8Mi
- name: echo-server
image: docker.io/telepresenceio/echo-server:latest
image: ghcr.io/telepresenceio/echo-server:latest
ports:
- name: http
containerPort: 8080
Expand Down
2 changes: 1 addition & 1 deletion integration_test/testdata/k8s/echo-no-containerport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: echo-server
image: docker.io/telepresenceio/echo-server:latest
image: ghcr.io/telepresenceio/echo-server:latest
env:
- name: PORTS
value: "8080,8081"
Expand Down
2 changes: 1 addition & 1 deletion integration_test/testdata/k8s/echo-no-vols.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
automountServiceAccountToken: false
containers:
- name: echo-server
image: docker.io/telepresenceio/echo-server:latest
image: ghcr.io/telepresenceio/echo-server:latest
ports:
- name: http
containerPort: 8080
Expand Down
4 changes: 2 additions & 2 deletions integration_test/testdata/k8s/echo-udp-tcp-unnamed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
containers:
- name: echo-udp-server
image: docker.io/telepresenceio/udp-echo:latest
image: ghcr.io/telepresenceio/udp-echo:latest
ports:
- containerPort: 8080
protocol: UDP
Expand All @@ -29,7 +29,7 @@ spec:
cpu: 50m
memory: 8Mi
- name: echo-server
image: docker.io/telepresenceio/echo-server:latest
image: ghcr.io/telepresenceio/echo-server:latest
ports:
- containerPort: 8080
env:
Expand Down
2 changes: 1 addition & 1 deletion integration_test/udp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ func (s *connectedSuite) TestUDPEcho() {
ctx := s.Context()
require := s.Require()
svc := "udp-echo"
tag := "docker.io/telepresenceio/udp-echo:latest"
tag := "ghcr.io/telepresenceio/udp-echo:latest"

require.NoError(s.Kubectl(ctx, "create", "deploy", svc, "--image", tag))
require.NoError(s.Kubectl(ctx, "expose", "deploy", svc, "--port", "80", "--protocol", "UDP", "--target-port", "8080"))
Expand Down

0 comments on commit 6803672

Please sign in to comment.