Skip to content

Merge pull request #9 from JongssLee/3-cicd-workflow-setup #1

Merge pull request #9 from JongssLee/3-cicd-workflow-setup

Merge pull request #9 from JongssLee/3-cicd-workflow-setup #1

Workflow file for this run

name: Crawler CI/CD Pipeline
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push crawler Docker image
run: |
docker build -t jongseolee/job_backend:latest .
docker push jongseolee/job_backend:latest