duck-estimator: Use issuecodes as much as possible #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy-coa-updater | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- "master" | |
jobs: | |
deploy-dm: | |
runs-on: ubuntu-latest | |
environment: production | |
steps: | |
- uses: oven-sh/setup-bun@v1 | |
- name: Check out repository | |
uses: actions/checkout@master | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: bperel | |
password: ${{ secrets.DOCKER_REGISTRY_TOKEN_DM }} | |
- name: Install pnpm | |
uses: pnpm/action-setup@v3 | |
with: | |
version: 9 | |
- name: Use Node.js 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: "pnpm" | |
- name: Install dependencies | |
run: pnpm -r install | |
- name: Build coa-updater bundle | |
run: pnpm build:coa-updater | |
- name: Build and push coa-updater | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: apps/coa-updater/Dockerfile | |
platforms: linux/x86_64 | |
push: true | |
cache-from: type=registry,ref=ghcr.io/bperel/coa-updater:buildcache | |
cache-to: type=registry,ref=ghcr.io/bperel/coa-updater:buildcache,mode=max | |
tags: | | |
ghcr.io/bperel/coa-updater | |
- name: Upload docker-compose.yml file | |
uses: nicklasfrahm/[email protected] | |
with: | |
direction: upload | |
host: ${{ secrets.PRODUCTION_SSH_HOST }} | |
fingerprint: ${{ secrets.PRODUCTION_SSH_FINGERPRINT }} | |
username: ${{ secrets.PRODUCTION_SSH_USER }} | |
key: ${{ secrets.PRODUCTION_SSH_KEY }} | |
source: apps/coa-updater/docker-compose.yml | |
target: /home/bperel/workspace/DucksManager2/apps/coa-updater/docker-compose.yml |