Resolve merge conflicts by using feature/language_diversity version #26
This file contains hidden or 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-Dockerhub | |
on: | |
push: | |
branches: | |
- development | |
pull_request: | |
branches: | |
- development | |
jobs: | |
publish-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Pull source code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build and Push Docker hub | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./code | |
platforms: linux/amd64 | |
push: true | |
tags: | | |
${{ secrets.DOCKERHUB_USERNAME }}/my_django_app:latest | |