Files
lustpress/.github/workflows/docker.yml
Indrawan I. e63195035d feat: use Playwright challenge and reuse cookies scraper (#17)
* adjust eslint

* playground depreciation warning

* adjust some tests

* playwright simulate run instead just raw phin

* adjusted ci

* vibe debugging

* update all deps, small ci changes, and strict dockerized build
2026-03-13 11:05:40 +07:00

40 lines
1.0 KiB
YAML

name: Docker
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set image name
run: echo "IMAGE_NAME=ghcr.io/$GITHUB_REPOSITORY" >> $GITHUB_ENV
- name: Log into GitHub Container Registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "$GITHUB_TOKEN" | docker login ghcr.io -u "$GITHUB_ACTOR" --password-stdin
- name: Get the package.json version
run: |
VERSION=$(jq -r .version package.json)
echo "IMAGE_TAG=$VERSION" >> $GITHUB_ENV
- name: Build the Docker image
run: docker build . --file Dockerfile --tag "$IMAGE_NAME:$IMAGE_TAG"
- name: Tag the Docker image
run: docker tag "$IMAGE_NAME:$IMAGE_TAG" "$IMAGE_NAME:latest"
- name: Push the Docker image
run: docker push "$IMAGE_NAME" --all-tags