diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 373a0e4..ab0b86b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,9 +1,9 @@ name: Publish Docker image on: - push: - branches: - - API_develop + push: + branches: + - develop jobs: push_to_registry: @@ -11,19 +11,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Copy repository - uses: actions/checkout@v1 - + uses: actions/checkout@v2 + - name: Docker login run: docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} - + - name: Build APP IMAGE run: docker build -t app -f /src/app/backend/dockerfile_api . - + - name: Tags run: | docker tag app ${{ secrets.DOCKER_USER }}/app:${{ github.sha }} docker tag app ${{ secrets.DOCKER_USER }}/app:latest - + - name: Push run: | docker push ${{ secrets.DOCKER_USER }}/app:${{ github.sha }}