Skip to content

Commit

Permalink
main.yml updated
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 1, 2023
1 parent 45aa6f7 commit a09254e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Publish Docker image

on:
push:
branches:
- API_develop
push:
branches:
- develop

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
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 }}
Expand Down

0 comments on commit a09254e

Please sign in to comment.