Lee
095f13791a
Some checks failed
Publish Docker Images / docker (push) Has been cancelled
Reviewed-on: #6
43 lines
972 B
YAML
43 lines
972 B
YAML
name: Publish Docker Images
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-22.04
|
|
container: fascinated/docker-images:node-pnpm-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Login to Repo
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.REPO_USERNAME }}
|
|
password: ${{ secrets.REPO_TOKEN }}
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build Repo
|
|
run: pnpm run build
|
|
|
|
- name: Build and Push (Node)
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
context: .
|
|
file: ./apps/node/Dockerfile
|
|
tags: fascinated/proxy:node-latest
|
|
|
|
- name: Build and Push (Proxy)
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: true
|
|
context: .
|
|
file: ./apps/proxy/Dockerfile
|
|
tags: fascinated/proxy:proxy-latest
|