|
13 | 13 | - master |
14 | 14 |
|
15 | 15 | 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 }} |
18 | 17 |
|
19 | 18 | DATABASE_URL: psql://postgres:postgres@localhost:5432/django_wtf |
20 | 19 | DJANGO_SETTINGS_MODULE: config.settings.test |
|
48 | 47 | - name: Login to Image Registry |
49 | 48 | uses: docker/login-action@v2 |
50 | 49 | 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 }} |
54 | 53 |
|
55 | 54 | - name: Set up Docker Buildx |
56 | 55 | uses: docker/setup-buildx-action@v2 |
|
98 | 97 | - name: Install Poetry |
99 | 98 | uses: snok/install-poetry@v1 |
100 | 99 | with: |
101 | | - version: 1.5.1 |
| 100 | + version: 1.8.3 |
102 | 101 | virtualenvs-create: true |
103 | 102 | virtualenvs-in-project: true |
104 | 103 | installer-parallel: true |
@@ -183,7 +182,7 @@ jobs: |
183 | 182 | - name: Install Poetry |
184 | 183 | uses: snok/install-poetry@v1 |
185 | 184 | with: |
186 | | - version: 1.5.1 |
| 185 | + version: 1.8.3 |
187 | 186 | virtualenvs-create: true |
188 | 187 | virtualenvs-in-project: true |
189 | 188 | installer-parallel: true |
@@ -231,28 +230,3 @@ jobs: |
231 | 230 | run: | |
232 | 231 | source .venv/bin/activate |
233 | 232 | 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