Skip to content

Merge pull request #57 from donghquinn/dev #19

Merge pull request #57 from donghquinn/dev

Merge pull request #57 from donghquinn/dev #19

Workflow file for this run

name: Docker Image Upload
# branch master일 때만 액션 실행
on:
push:
branches: [ "master" ]
jobs:
push-image-to-docker-hub: # job name
runs-on: ubuntu-latest # runner name : (ubuntu latest version)
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: private registry login
uses: docker/login-action@v2
with:
registry: ${{ secrets.REGISTRY_URL }}
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: dockerfile build and push
run: |
docker build . --file Dockerfile-deploy --tag registry.andongh.com/${{secrets.IMAGE_NAME}}/${{secrets.IMAGE_NAME}}:latest
docker push registry.andongh.com/${{secrets.IMAGE_NAME}}/${{secrets.IMAGE_NAME}}:latest