finally: working deploy
Some checks failed
Build & Deploy Strapi from Docker Hub / Build and Push to Docker Hub (push) Has been cancelled
Build & Deploy Strapi from Docker Hub / Deploy to VPS (push) Has been cancelled

This commit is contained in:
vchikalkin 2025-06-27 21:01:43 +03:00
parent a4bdfddc54
commit e799257dee

View File

@ -6,26 +6,26 @@ on:
- master
jobs:
# build-and-push:
# name: Build and Push to Docker Hub
# runs-on: ubuntu-latest
build-and-push:
name: Build and Push to Docker Hub
runs-on: ubuntu-latest
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
steps:
- name: Checkout code
uses: actions/checkout@v3
# - name: Login to Docker Hub
# run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Login to Docker Hub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
# - name: Build image
# run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest .
- name: Build image
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest .
# - name: Push image to Docker Hub
# run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest
- name: Push image to Docker Hub
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest
deploy:
name: Deploy to VPS
# needs: build-and-push
needs: build-and-push
runs-on: ubuntu-latest
environment: production