Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ozziest committed Nov 13, 2024
1 parent 68adad3 commit 86ef8ab
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,23 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Install doctl
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.REGISTERY_ACCESS_TOKEN }}
- name: Dependencies
run: npm ci
- name: Build
run: npm run build
- name: Build the image
run: |
cd build
docker build -t tinyblog-production .
docker tag tinyblog-production:latest registry.digitalocean.com/tinyblog-production:latest
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTERY_USERNAME }}
password: ${{ secrets.REGISTERY_ACCESS_TOKEN }}
- name: Push the image to the registry
run: docker push registry.digitalocean.com/tinyblog-production:latest
# - name: Build the image
# run: |
# cd build
# docker build -t tinyblog-production .
# docker tag tinyblog-production:latest registry.digitalocean.com/tinyblog-production:latest
# - name: Log in to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.REGISTERY_USERNAME }}
# password: ${{ secrets.REGISTERY_ACCESS_TOKEN }}
# - name: Push the image to the registry
# run: docker push registry.digitalocean.com/tinyblog-production:latest

0 comments on commit 86ef8ab

Please sign in to comment.