Skip to content

Commit

Permalink
Merge pull request #1 from bespinian/images-build
Browse files Browse the repository at this point in the history
Build and publish container images
  • Loading branch information
neckhair authored Oct 17, 2024
2 parents 36d9d13 + 8999861 commit 30ae8e1
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 8 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker-images.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Docker Image CI

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

jobs:
build-push-images:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: "Tasks API: Build and push Docker image"
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
context: backend/tasks
tags: |
ghcr.io/${{ github.repository }}/tasks:latest
ghcr.io/${{ github.repository }}/tasks:${{ github.sha }}
- name: "Frontend: Build and push Docker image"
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
context: frontend
tags: |
ghcr.io/${{ github.repository }}/frontend:latest
ghcr.io/${{ github.repository }}/frontend:${{ github.sha }}
16 changes: 8 additions & 8 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30ae8e1

Please sign in to comment.