37 lines
763 B
YAML
37 lines
763 B
YAML
name: Build Base App Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths:
|
|
- 'package.json'
|
|
- 'requirements.txt'
|
|
- 'docker/base.Dockerfile'
|
|
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY: ghcr.io
|
|
IMAGE_NAME: datatracker-app-base
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Docker Build & Push
|
|
uses: mr-smithers-excellent/docker-build-push@v5.6
|
|
with:
|
|
image: ${{ env.IMAGE_NAME }}
|
|
tags: latest
|
|
registry: ${{ env.REGISTRY }}
|
|
dockerfile: docker/base.Dockerfile
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|