Skip to content

Commit aab62e4

Browse files
committed
chore: Update CHANGELOG, Dockerfile and add CI workflow for publishing latest Docker image
- Update CHANGELOG.md to include the new Docker workflow - Update Dockerfile to improve the build process - Add a new GitHub Actions workflow (.github/workflows/publish\_docker\_image\_latest.yml) to publish the latest Docker image on push to the 'v2.0.0' branch This change allows for easier deployment of the latest version of the application, with an updated Dockerfile and a new GitHub Actions workflow to handle publishing the Docker image.
1 parent 6cea022 commit aab62e4

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build Docker image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build_deploy:
10+
name: Build and Deploy
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Docker meta
20+
id: meta
21+
uses: docker/metadata-action@v5
22+
with:
23+
images: atendai/evolution-api
24+
tags: latest
25+
26+
- name: Set up QEMU
27+
uses: docker/setup-qemu-action@v3
28+
29+
- name: Set up Docker Buildx
30+
uses: docker/setup-buildx-action@v3
31+
32+
- name: Login to Docker Hub
33+
uses: docker/login-action@v3
34+
with:
35+
username: ${{ secrets.DOCKER_USERNAME }}
36+
password: ${{ secrets.DOCKER_PASSWORD }}
37+
38+
- name: Build and push
39+
id: docker_build
40+
uses: docker/build-push-action@v5
41+
with:
42+
platforms: linux/amd64,linux/arm64
43+
push: true
44+
tags: ${{ steps.meta.outputs.tags }}
45+
labels: ${{ steps.meta.outputs.labels }}
46+
47+
- name: Image digest
48+
run: echo ${{ steps.docker_build.outputs.digest }}

CHANGELOG.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,22 @@
3636
- KeepOpen configuration (keeps the session even when the bot ends, to run once per contact)
3737
- StopBotFromMe configuration, allows me to stop the bot if I send a chat message.
3838

39-
# 1.8.1 (develop)
39+
# 1.8.2 (2024-07-03 13:50)
40+
41+
### Fixed
42+
43+
* Corretion in globall rabbitmq queue name
44+
* Improvement in the use of mongodb database for credentials
45+
* Fixed base64 in webhook for documentWithCaption
46+
* Fixed Generate pairing code
47+
48+
# 1.8.1 (2024-06-08 21:32)
4049

4150
### Feature
4251

4352
* New method of saving sessions to a file using worker, made in partnership with [codechat](https://github.com/code-chat-br/whatsapp-api)
44-
* Caching system for group data
4553

46-
### Fixes
54+
### Fixed
4755

4856
* Correction of variables breaking lines in typebot
4957

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ WORKDIR /evolution
1111

1212
COPY ./package.json ./tsconfig.json ./
1313

14-
RUN npm install
14+
RUN npm install --no-cache
1515

1616
COPY ./src ./src
1717
COPY ./public ./public
@@ -39,7 +39,7 @@ WORKDIR /evolution
3939
COPY --from=builder /evolution/package.json ./package.json
4040
COPY --from=builder /evolution/package-lock.json ./package-lock.json
4141

42-
RUN npm install --omit=dev
42+
RUN npm install --omit=dev --no-cache
4343

4444
COPY --from=builder /evolution/dist ./dist
4545
COPY --from=builder /evolution/prisma ./prisma

0 commit comments

Comments
 (0)