Skip to content

Commit

Permalink
merge workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoishin committed Jan 7, 2024
1 parent 3749ffb commit 403de8d
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 50 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- main

permissions:
packages: write

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -21,3 +24,38 @@ jobs:
- run: npm run build
- run: npm run lint
- run: npm run test

- if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: actions/upload-artifact@v4
with:
name: admin
path: ./projects/admin/dist
- if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
uses: actions/upload-artifact@v4
with:
name: client
path: ./projects/client/dist

docker-image:
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/metadata-action@v5
id: meta
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=sha
- uses: docker/build-push-action@v5
with:
context: ./projects/server
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
50 changes: 0 additions & 50 deletions .github/workflows/publish.yaml

This file was deleted.

0 comments on commit 403de8d

Please sign in to comment.