Skip to content

Commit 34419b6

Browse files
author
Diogo Ferraz
committed
ci(client): add docker publish workflow for frontend image
1 parent ed0995c commit 34419b6

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Publish Frontend Image
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v3
21+
22+
- name: Login to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+
- name: Build and push Client image
29+
uses: docker/build-push-action@v6
30+
with:
31+
context: .
32+
file: Dockerfile
33+
build-args: |
34+
BUILD_CONFIGURATION=development
35+
platforms: linux/amd64
36+
push: true
37+
tags: |
38+
diogopro/taskmanagement-client:latest
39+
diogopro/taskmanagement-client:sha-${{ github.sha }}

0 commit comments

Comments
 (0)