Merge pull request #76 from donghquinn/dev #38
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: 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 |