finally: working deploy
This commit is contained in:
parent
a4bdfddc54
commit
e799257dee
26
.github/workflows/deploy.yml
vendored
26
.github/workflows/deploy.yml
vendored
@ -6,26 +6,26 @@ on:
|
|||||||
- master
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# build-and-push:
|
build-and-push:
|
||||||
# name: Build and Push to Docker Hub
|
name: Build and Push to Docker Hub
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: Checkout code
|
- name: Checkout code
|
||||||
# uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# - name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
# run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
|
||||||
|
|
||||||
# - name: Build image
|
- name: Build image
|
||||||
# run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest .
|
run: docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest .
|
||||||
|
|
||||||
# - name: Push image to Docker Hub
|
- name: Push image to Docker Hub
|
||||||
# run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest
|
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/zapishis-strapi:latest
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy to VPS
|
name: Deploy to VPS
|
||||||
# needs: build-and-push
|
needs: build-and-push
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user