Skip to content

Commit

Permalink
fix: improvments to build and deply workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmcphee committed Nov 20, 2024
1 parent 6c5c52c commit 2fd00a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2fd00a6

Please sign in to comment.