Skip to content

Docker Slim

Docker Slim #13

Workflow file for this run

name: Docker Slim
#Only trigger, when the build workflow succeeded
on:
workflow_run:
workflows: ["Docker Image CI"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: update docker-compose
shell: bash
run: |
sed -i "s|\.:|${{ github.workspace }}:|g" ${{ github.workspace }}/docker-compose.yaml
cat ${{ github.workspace }}/docker-compose.yaml
- uses: kitabisa/[email protected]
env:
DSLIM_PULL: true
DSLIM_COMPOSE_FILE: ${{ github.workspace }}/docker-compose.yaml
DSLIM_TARGET_COMPOSE_SVC: app
DSLIM_CONTINUE_AFTER: signal
with:
target: amirpourmand/jupyter-docker-conda
tag: "slim"
# Push to the registry
- run: docker image push amirpourmand/jupyter-docker-conda:slim