Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
day-mon committed Jan 16, 2024
1 parent 210dbda commit 55b7291
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/docker-publish-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Docker Build
on:
push:
paths:
- '**.rs'
- 'api/api/**'
- '**.toml'
- 'API/Dockerfile'
- 'api/Dockerfile'
- '.github/workflows/docker-publish-api.yml'
branches: [ main, ci-test ]
branches: [ main, ci-test , feature/revamp ]

env:
IMAGE_NAME: api
Expand All @@ -20,11 +20,11 @@ jobs:

- name: Build image
run: docker build . --build-arg VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,') --file Dockerfile --tag $IMAGE_NAME
working-directory: ./API
working-directory: ./api

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
working-directory: ./API
working-directory: ./api

- name: Push image
run: |
Expand All @@ -37,7 +37,8 @@ jobs:
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:latest
docker push --all-tags $IMAGE_ID
working-directory: ./API
working-directory: ./api

deploy:
needs:
- build-api
Expand Down

0 comments on commit 55b7291

Please sign in to comment.