Skip to content

Commit f0f6072

Browse files
committed
ci: Build public ghcr images
1 parent 8e2b96d commit f0f6072

File tree

1 file changed

+6
-32
lines changed

1 file changed

+6
-32
lines changed

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ on:
1313
- master
1414

1515
env:
16-
IMAGE_REGISTRY: europe-west1-docker.pkg.dev
17-
IMAGE_REPOSITORY: europe-west1-docker.pkg.dev/honeylogic/default/${{ github.event.repository.name }}
16+
IMAGE_REPOSITORY: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
1817

1918
DATABASE_URL: psql://postgres:postgres@localhost:5432/django_wtf
2019
DJANGO_SETTINGS_MODULE: config.settings.test
@@ -48,9 +47,9 @@ jobs:
4847
- name: Login to Image Registry
4948
uses: docker/login-action@v2
5049
with:
51-
registry: ${{ env.IMAGE_REGISTRY }}
52-
username: _json_key
53-
password: ${{ secrets.GAR_JSON_KEY }}
50+
registry: ghcr.io
51+
username: ${{ github.repository_owner }}
52+
password: ${{ secrets.GITHUB_TOKEN }}
5453

5554
- name: Set up Docker Buildx
5655
uses: docker/setup-buildx-action@v2
@@ -98,7 +97,7 @@ jobs:
9897
- name: Install Poetry
9998
uses: snok/install-poetry@v1
10099
with:
101-
version: 1.5.1
100+
version: 1.8.3
102101
virtualenvs-create: true
103102
virtualenvs-in-project: true
104103
installer-parallel: true
@@ -183,7 +182,7 @@ jobs:
183182
- name: Install Poetry
184183
uses: snok/install-poetry@v1
185184
with:
186-
version: 1.5.1
185+
version: 1.8.3
187186
virtualenvs-create: true
188187
virtualenvs-in-project: true
189188
installer-parallel: true
@@ -231,28 +230,3 @@ jobs:
231230
run: |
232231
source .venv/bin/activate
233232
pytest django_wtf --cov django_wtf # --run-concurrent
234-
235-
release:
236-
name: Release
237-
runs-on: ubuntu-latest
238-
timeout-minutes: 10
239-
if: github.event_name == 'push' || github.event_name == 'release'
240-
needs:
241-
- build
242-
- lint
243-
- test
244-
steps:
245-
- uses: actions/checkout@v3
246-
with:
247-
ssh-key: ${{ secrets.OPS_DEPLOY_KEY }}
248-
repository: "${{ github.event.organization.login }}/ops"
249-
250-
- uses: webfactory/[email protected]
251-
with:
252-
ssh-private-key: ${{ secrets.OPS_DEPLOY_KEY }}
253-
254-
- name: Release
255-
if: github.event_name == 'push'
256-
run: |
257-
COMMIT_MESSAGE=$(echo "${{ github.event.head_commit.message }}")
258-
./scripts/git-push.sh -v ${{ github.sha }} -m "$COMMIT_MESSAGE" -t '${{ github.event.repository.name }}' -a '${{ github.event.repository.name }}'

0 commit comments

Comments
 (0)