Skip to content

Commit

Permalink
Merge pull request #19 from HeesuKim0203/HeesuKim0203-patch-1
Browse files Browse the repository at this point in the history
Create main.yml
  • Loading branch information
HeesuKim0203 authored Jan 14, 2024
2 parents 082c4dc + da8cda3 commit a510bef
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: deploy

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
env :
VERSION : 0.1

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push production
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_APP_NAME }}:latest,${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_APP_NAME }}:${{ env.VERSION }}
platforms: linux/amd64,linux/arm64

0 comments on commit a510bef

Please sign in to comment.