Skip to content

Commit

Permalink
Merge pull request #24 from SoftBananas/ci-cd
Browse files Browse the repository at this point in the history
fix: deploy
  • Loading branch information
ONEPANTSU authored Mar 5, 2024
2 parents 36c144f + b366d75 commit 113db39
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,6 @@ on:
branches: [ main-banana ]

jobs:

push_to_registry:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Log in to Docker Hub
uses: docker/login-action@v3.0.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5.5.1
with:
images: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_NAME }}
tags: latest
labels: latest

- name: Build and push Docker image
uses: docker/build-push-action@v5.1.0
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

server_update:
needs: push_to_registry
name: Update server by ssh
Expand Down

0 comments on commit 113db39

Please sign in to comment.