Skip to content

Commit

Permalink
ใ…
Browse files Browse the repository at this point in the history
  • Loading branch information
be-student committed Jul 20, 2023
1 parent cc45835 commit cc2a674
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,35 @@ on:
- feat/149

jobs:
docker-build:
runs-on: ubuntu-latest
# docker-build:
# runs-on: ubuntu-latest
# steps:
# - name: Log in to Docker Hub
# uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_PASSWORD }}
# - uses: actions/checkout@v3
#
# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
# with:
# images: woowacarffeine/frontend
#
# - name: Build and push Docker image
# uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
# with:
# context: ./frontend
# file: ./frontend/Dockerfile
# push: true
# tags: woowacarffeine/frontend:latest
# labels: ${{ steps.meta.outputs.labels }}

deploy:
runs-on: self-hosted
# if: ${{ needs.docker-build.result == 'success' }}
# needs: [ docker-build ]
steps:
- name: Log in to Docker Hub
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
Expand All @@ -35,11 +62,6 @@ jobs:
tags: woowacarffeine/frontend:latest
labels: ${{ steps.meta.outputs.labels }}

deploy:
runs-on: self-hosted
if: ${{ needs.docker-build.result == 'success' }}
needs: [ docker-build ]
steps:
- name: Join EC2 dev server
uses: appleboy/ssh-action@master
with:
Expand Down

0 comments on commit cc2a674

Please sign in to comment.