Skip to content

linux/amd64

linux/amd64 #98

name: linux/amd64
on:
push:
branches: [ main ]
paths:
- '**'
- '!README.md'
- '!LICENSE'
- '!.github/workflows/update-dockerhub.yml'
- '!.github/dependabot.yml'
pull_request:
branches: [ main ]
paths:
- '**'
- '!README.md'
- '!LICENSE'
- '!.github/workflows/update-dockerhub.yml'
- '!.github/dependabot.yml'
schedule:
- cron: '0 0 * * MON'
repository_dispatch: # Allows action to be triggered via webhook
workflow_dispatch: # Allows action to be run manually from the Actions tab
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build Linux Image
uses: docker/build-push-action@v4.0.0
with:
context: .
file: ./linux.Dockerfile
tags: |
lan2play/docker-sphinxbuild:latest
build-args: |
BUILDNODE=GitHub (Run Number: ${{ github.run_number }} Run ID: ${{ github.run_id }})
SOURCE_COMMIT=${{ github.sha }}
no-cache: true
- name: Build latexpdf Linux Image
uses: docker/build-push-action@v4.0.0
with:
context: .
file: ./linux.latexpdf.Dockerfile
tags: |
lan2play/docker-sphinxbuild:latexpdf
build-args: |
BUILDNODE=GitHub (Run Number: ${{ github.run_number }} Run ID: ${{ github.run_id }})
SOURCE_COMMIT=${{ github.sha }}
no-cache: true
- name: Login to DockerHub
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@v2.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push latest to Docker HUB
if: ${{ github.event_name != 'pull_request' }}
run: docker push lan2play/docker-sphinxbuild:latest
- name: Push latexpdf to Docker HUB
if: ${{ github.event_name != 'pull_request' }}
run: docker push lan2play/docker-sphinxbuild:latexpdf