Skip to content

Commit 8999861

Browse files
committed
build and push docker images
1 parent 36d9d13 commit 8999861

File tree

2 files changed

+44
-8
lines changed

2 files changed

+44
-8
lines changed

.github/workflows/docker-images.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build-push-images:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Log in to GHCR
16+
uses: docker/login-action@v3
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.actor }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
- name: "Tasks API: Build and push Docker image"
22+
uses: docker/build-push-action@v6
23+
with:
24+
push: ${{ github.event_name != 'pull_request' }}
25+
context: backend/tasks
26+
tags: |
27+
ghcr.io/${{ github.repository }}/tasks:latest
28+
ghcr.io/${{ github.repository }}/tasks:${{ github.sha }}
29+
- name: "Frontend: Build and push Docker image"
30+
uses: docker/build-push-action@v6
31+
with:
32+
push: ${{ github.event_name != 'pull_request' }}
33+
context: frontend
34+
tags: |
35+
ghcr.io/${{ github.repository }}/frontend:latest
36+
ghcr.io/${{ github.repository }}/frontend:${{ github.sha }}

frontend/package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)