Skip to content

Commit

Permalink
debug container
Browse files Browse the repository at this point in the history
Signed-off-by: joél hawkins torres <joel@joel.fm>
  • Loading branch information
hwknsj committed Oct 16, 2024
1 parent d07d4b8 commit dba3bfe
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,46 @@
name: Deploy

on: [push]
on:
push:
branches: [$default-branch]

workflow_dispatch:

defaults:
run:
shell: bash
working-directory: /var/

jobs:
build:
runs-on: self-hosted
container:
image: 'joel/alpine'
environment: vps
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
steps:
- uses: actions/checkout@v4
- name: node install and build
- name: checkout
uses: actions/checkout@v4

- name: setup-node
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'yarn'
- run: |
echo "${{ job.container.id }}"
echo "${{ vars }}"
- run: yarn install
- run: yarn build

- name: docker copy from container to host
- uses: tj-actions/docker-cp@v2
- name: docker-cp
uses: tj-actions/docker-cp@v2
with:
# Container name
container: ${{ job.container.id }}
# Source file or directory
source: './public'
# Destination file or directory
destination: ${{ vars.output_path }}
# Copy from container to local (i.e container to host)
local: true
# Additional options passed to [docker cp](https://docs.docker.com/engine/reference/commandline/cp/#options)
# options:
Expand Down

0 comments on commit dba3bfe

Please sign in to comment.