Skip to content

Commit

Permalink
devops: adding back in the proper git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
cdxker committed Oct 3, 2023
1 parent b9cb3ff commit 13fc25a
Showing 1 changed file with 43 additions and 3 deletions.
46 changes: 43 additions & 3 deletions .github/workflows/push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ jobs:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
arguflow/search
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Setup buildx
uses: docker/setup-buildx-action@v3

Expand All @@ -46,7 +59,7 @@ jobs:
context: search/
file: ./search/Dockerfile
push: true
tags: arguflow/search:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build_chat:
Expand All @@ -70,6 +83,19 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
arguflow/search
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -78,7 +104,7 @@ jobs:
context: chat/
file: ./chat/Dockerfile
push: true
tags: arguflow/chat:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

build_server:
Expand All @@ -102,6 +128,20 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
arguflow/search
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand All @@ -110,5 +150,5 @@ jobs:
context: server/
file: ./server/Dockerfile
push: true
tags: arguflow/server:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 13fc25a

Please sign in to comment.