43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Build_Subgen_Dockerfile
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.yml'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Login to Docker Hub
|
|
uses: docker/login-action@v3.0.0
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
-
|
|
name: Log in to the Github Container registry
|
|
uses: docker/login-action@v3.0.0
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
-
|
|
name: Build
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
push: false
|
|
tags: mccloud/subgen:latest
|
|
- uses: kitabisa/docker-slim-action@v1
|
|
env:
|
|
DSLIM_HTTP_PROBE: false
|
|
with:
|
|
target: docker.io/mccloud/subgen:latest
|
|
overwrite: true
|
|
# Push to the registry
|
|
- run: docker image push "mccloud/subgen:latest" --all-tags
|