Skip to content

Commit

Permalink
cleaning up release
Browse files Browse the repository at this point in the history
  • Loading branch information
wisebaldone committed Mar 27, 2022
1 parent e6bbc19 commit 744eb3f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Build Todo App ( Backend )
on:
push:
branches:
- main
- 'main'
tags:
- 'v*'

jobs:
build:
Expand All @@ -22,14 +24,20 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/csse6400/todo-app

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./backend
file: backend/Dockerfile
push: true
tags: |
ghcr.io/csse6400/todo-app:backend-latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}


4 changes: 2 additions & 2 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Build Todo App ( Frontend )

on:
push:
branches:
- main
tags:
- "v*.*.*"

jobs:
build:
Expand Down

0 comments on commit 744eb3f

Please sign in to comment.