forked from cswimr/SeaCogs
feat(workflow): use custom docker image for faster builds
This commit is contained in:
parent
d8d5d8cd57
commit
3d8a064bed
1 changed files with 4 additions and 24 deletions
|
@ -8,33 +8,12 @@ on:
|
|||
jobs:
|
||||
build and lint:
|
||||
runs-on: docker
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
container: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install apt packages
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y \
|
||||
libcairo2-dev \
|
||||
libfreetype6-dev \
|
||||
libffi-dev \
|
||||
libjpeg-dev \
|
||||
libpng-dev \
|
||||
libz-dev \
|
||||
pngquant
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: "12"
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Install Poetry
|
||||
run: curl -sSL https://cdn.seaswimmer.cc/go/poetry | python3.11 -
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
@ -54,11 +33,12 @@ jobs:
|
|||
unset GITHUB_TOKEN
|
||||
unset GITLAB_TOKEN
|
||||
|
||||
if [ -n "${{ github.base_ref }}" ]; then
|
||||
echo "${{ github.ref_name }}"
|
||||
echo "${{ github.base_ref }}"
|
||||
|
||||
if [ -n "${{ github.base_ref }}" ]; then
|
||||
release="$(basename "${{ github.base_ref }}")"
|
||||
else
|
||||
echo "${{ github.ref_name }}"
|
||||
release="$(basename "${{ github.ref_name }}")"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue