Skip to content

Commit 8a182f6

Browse files
update ci-cd
1 parent 9c69e60 commit 8a182f6

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

.github/workflows/ci-cd.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
services:
1515
postgres:
16-
image: postgres:13
16+
image: postgres:16
1717
env:
1818
POSTGRES_USER: odoo
1919
POSTGRES_PASSWORD: odoo
@@ -28,10 +28,10 @@ jobs:
2828
2929
steps:
3030
- name: Checkout code
31-
uses: actions/checkout@v4.0.0
31+
uses: actions/checkout@v5.0.0
3232

3333
- name: Set up Python
34-
uses: actions/setup-python@v5.0.0
34+
uses: actions/setup-python@v6.0.0
3535
with:
3636
python-version: '3.11'
3737

@@ -101,7 +101,7 @@ jobs:
101101
CHROMA_PERSIST_DIRECTORY: /tmp/chromadb
102102

103103
- name: Upload test results
104-
uses: actions/upload-artifact@v4
104+
uses: actions/upload-artifact@v5
105105
if: always()
106106
with:
107107
name: test-results
@@ -111,7 +111,7 @@ jobs:
111111
retention-days: 30
112112

113113
- name: Upload coverage to Codecov
114-
uses: codecov/codecov-action@v5.0.0
114+
uses: codecov/codecov-action@v5.5.1
115115
with:
116116
file: ./coverage.xml
117117
fail_ci_if_error: false
@@ -124,20 +124,25 @@ jobs:
124124

125125
steps:
126126
- name: Checkout code
127-
uses: actions/checkout@v4.0.0
127+
uses: actions/checkout@v5.0.0
128128

129129
- name: Set up Docker Buildx
130-
uses: docker/setup-buildx-action@v3.0.0
130+
uses: docker/setup-buildx-action@v3.11.1
131131

132132
- name: Login to DockerHub
133-
uses: docker/login-action@v3.0.0
133+
uses: docker/login-action@v3.6.0
134134
with:
135135
username: ${{ secrets.DOCKERHUB_USERNAME }}
136136
password: ${{ secrets.DOCKERHUB_TOKEN }}
137+
- name: Bump version and push tag
138+
id: tagging
139+
uses: mathieudutour/github-tag-action@v6.2
140+
with:
141+
github_token: ${{ secrets.DOO_GITHUB_TOKEN }}
137142

138143
- name: Build and push
139-
uses: docker/build-push-action@v6.0.0
144+
uses: docker/build-push-action@v6.18.0
140145
with:
141146
context: .
142147
push: true
143-
tags: ${{ secrets.DOCKERHUB_USERNAME }}/vanna-ai-odoo:latest
148+
tags: vanderleiromera/vanna-ai-odoo:${{ steps.tagging.outputs.new_version }}

0 commit comments

Comments
 (0)