Skip to content

Merge pull request #9 from lichifeng/refactor-2024-linux #6

Merge pull request #9 from lichifeng/refactor-2024-linux

Merge pull request #9 from lichifeng/refactor-2024-linux #6

name: Docker
on:
push:
branches: [ master ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image (default)
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: lichifeng/mgxparser:latest
file: Dockerfile
- name: Build and push Docker image (alpine)
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: lichifeng/mgxparser:alpine
file: Dockerfile.alpine