proxy/.gitea/workflows/publish.yml

45 lines
1000 B
YAML
Raw Normal View History

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
uses: actions/checkout@v3
- name: Login to Repo
uses: docker/login-action@v2
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)
uses: docker/build-push-action@v4
with:
push: true
2023-11-16 12:54:49 +00:00
file: ./Dockerfile
2023-11-16 11:56:52 +00:00
tags: fascinated/proxy:node-latest
2023-11-16 12:54:49 +00:00
build-args: |
APP=node
2023-11-16 11:56:52 +00:00
- name: Build and Push (Proxy)
uses: docker/build-push-action@v4
with:
push: true
2023-11-16 12:54:49 +00:00
file: ./Dockerfile
2023-11-16 11:56:52 +00:00
tags: fascinated/proxy:proxy-latest
2023-11-16 12:54:49 +00:00
build-args: |
APP=proxy