Skip to content

Add actions for docker image. #1

Add actions for docker image.

Add actions for docker image. #1

name: Docker Image for Worker
on:
push:
tags:
- '**'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: 'worker'
sparse-checkout-cone-mode: false
# All files should be moved to the project root.
- name: Move app files to root
run: |
ls -lah
shopt -s dotglob
mv worker/* .
rm -rf worker
ls -lah
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: am009
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: am009/latexdiff-web-worker:latest,am009/latexdiff-web-worker:${{ github.ref_name }}