From 2fd00a66dd64df3cf1b68421fbcb3751d134f50a Mon Sep 17 00:00:00 2001 From: Adrian McPhee Date: Wed, 20 Nov 2024 19:23:20 +0100 Subject: [PATCH] fix: improvments to build and deply workflow --- .github/workflows/build-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 86fe49ff..7a40b74c 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -31,14 +31,14 @@ jobs: fi env: GH_TOKEN: ${{ secrets.GH_TOKEN }} + - name: Login to registry + run: doctl registry login --expiry-seconds 1200 - name: Build the Docker image run: | export VERSION=$(python -c 'import version; print(version.version)') docker build . --file Dockerfile \ --build-arg DJANGO_SETTINGS_MODULE=apps.common.settings.production \ --tag registry.digitalocean.com/openunited/core:$VERSION - - name: Login to registry - run: doctl registry login --expiry-seconds 600 - name: Push to DigitalOcean run: docker push -a registry.digitalocean.com/openunited/core - name: Fetch current spec file