Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 0d3ef59

Browse files
authored
switch from digitalocean registry to github registry (#43)
1 parent df8c25d commit 0d3ef59

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,27 @@ on:
2323
jobs:
2424
test:
2525
runs-on: ubuntu-latest
26+
permissions:
27+
contents: read
28+
packages: write
2629
env:
27-
CONTAINER_REGISTRY: "registry.digitalocean.com"
30+
CONTAINER_REGISTRY: "ghcr.io"
2831
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
2932
steps:
3033
- name: Checkout
3134
uses: actions/checkout@v2
3235
with:
3336
ref: ${{ github.event.inputs.sdkSha }}
34-
- name: Login to DO container registry
35-
uses: docker/login-action@v1
37+
- name: Login to container registry
38+
uses: docker/login-action@v2
3639
with:
3740
registry: ${{ env.CONTAINER_REGISTRY }}
38-
username: ${{ secrets.DIGITAL_OCEAN_TOKEN }}
39-
password: ${{ secrets.DIGITAL_OCEAN_TOKEN }}
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.BOT_GH_TOKEN }}
4043
- name: Pre-pull Seam Connect image
41-
run: docker pull ${{ env.CONTAINER_REGISTRY }}/seam/seam-connect:${{ github.event.inputs.connectSha || 'latest' }}
44+
run: |
45+
docker pull ${{ env.CONTAINER_REGISTRY }}/seamapi/seam-connect:${{ github.event.inputs.connectSha || 'latest' }}
46+
docker tag ${{ env.CONTAINER_REGISTRY }}/seamapi/seam-connect:${{ github.event.inputs.connectSha || 'latest' }} seamapi/seam-connect
4247
- uses: actions/setup-python@v2
4348
with:
4449
python-version: 3.8

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def seam_backend():
2929
with PostgresContainer("postgres:13", dbname="postgres") as pg:
3030
db_host = "host.docker.internal" if sys.platform == "darwin" else "172.17.0.1"
3131
db_url = f"postgresql://test:test@{db_host}:{pg.get_exposed_port(pg.port_to_expose)}/postgres"
32-
with DockerContainer("helloseam/seam-connect").with_env(
32+
with DockerContainer("seamapi/seam-connect").with_env(
3333
"DATABASE_URL",
3434
db_url,
3535
).with_env("POSTGRES_DATABASE", "postgres").with_env(

0 commit comments

Comments
 (0)