Skip to content

deploy to ghp

deploy to ghp #71

Workflow file for this run

name: Docker Pipeline
on:
push:
branches: [main]
jobs:
build-frontend:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
cd app
npm ci
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
build-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker login
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
run: |
docker login https://docker.pkg.github.com -u $DOCKER_USER -p $DOCKER_PASS
- name: npm install
run: |
pushd server && npm install && popd
- name: docker build
run: |
docker build . -t docker.pkg.github.com/josholaus/doofus-rick/bot:latest
- name: docker push
run: |
docker push docker.pkg.github.com/josholaus/doofus-rick/bot:latest