2023-11-16 11:56:52 +00:00
|
|
|
name: Publish Docker Images
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "master"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-22.04
|
2023-11-16 12:01:54 +00:00
|
|
|
container: fascinated/docker-images:node-pnpm-latest
|
2023-11-16 11:56:52 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-11-16 12:01:19 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-11-16 11:56:52 +00:00
|
|
|
|
|
|
|
- name: Login to Repo
|
2023-11-16 13:01:20 +00:00
|
|
|
uses: docker/login-action@v3
|
2023-11-16 11:56:52 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.REPO_USERNAME }}
|
|
|
|
password: ${{ secrets.REPO_TOKEN }}
|
|
|
|
|
2023-11-16 12:01:54 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pnpm install
|
|
|
|
|
2023-11-16 12:44:21 +00:00
|
|
|
- name: Build Repo
|
|
|
|
run: pnpm run build
|
|
|
|
|
2023-11-16 11:56:52 +00:00
|
|
|
- name: Build and Push (Node)
|
2023-11-16 12:01:22 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-11-16 11:56:52 +00:00
|
|
|
with:
|
|
|
|
push: true
|
2023-11-16 13:19:30 +00:00
|
|
|
context: .
|
2023-11-16 13:17:23 +00:00
|
|
|
file: ./apps/node/Dockerfile
|
2023-11-16 11:56:52 +00:00
|
|
|
tags: fascinated/proxy:node-latest
|
|
|
|
|
|
|
|
- name: Build and Push (Proxy)
|
2023-11-16 12:01:22 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-11-16 11:56:52 +00:00
|
|
|
with:
|
|
|
|
push: true
|
2023-11-16 13:19:30 +00:00
|
|
|
context: .
|
2023-11-16 13:17:23 +00:00
|
|
|
file: ./apps/proxy/Dockerfile
|
2023-11-16 11:56:52 +00:00
|
|
|
tags: fascinated/proxy:proxy-latest
|