Update Project : redir #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Push Docker Image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
# Log in to Docker Hub | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
# Build the Docker image | |
- name: Build Docker image | |
run: docker build -t a-neuk-server-ai:latest . | |
# Tag the Docker image | |
- name: Tag Docker Image | |
run: docker tag a-neuk-server-ai:latest minseok128/a-neuk-server-ai:release1 | |
# Push the Docker image | |
- name: Push Docker Image to Docker Hub | |
run: | | |
docker push minseok128/a-neuk-server-ai:release1 |