Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
r4ulcl committed Jan 10, 2024
1 parent 0b5a1a1 commit f75d9e8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- 'main'
# tags:
# - 'v*'
tags:
- 'v*'

jobs:
docker:
Expand Down Expand Up @@ -43,7 +43,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin

Expand Down
34 changes: 16 additions & 18 deletions .github/workflows/build-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Docker Build and Publish Worker
on:
push:
branches:
- 'master'
- 'main'
tags:
- 'v*'

Expand All @@ -25,25 +25,23 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
#images: ${{ github.repository_NAME }}/${{ github.repository_name }}
images: ${{ github.actor }}/ntask-worker

# - name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ github.actor }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build and push docker
# id: docker_build
# uses: docker/build-push-action@v2
# with:
# context: .
# file: ./worker/Dockerfile
# platforms: linux/amd64
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push docker
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./worker/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Login to GitHub Container Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ To generate the Swagger documentation, follow these steps:
```

This command generates the Swagger JSON and the necessary files for the Swagger UI.

## Diagram

![nTask Diagram](./resources/nTask-diagram.png)
Expand Down

0 comments on commit f75d9e8

Please sign in to comment.