Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DockerSlim #1699

Merged
merged 46 commits into from
Oct 7, 2023
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
e3f4121
add docker slim
pourmand1376 Sep 3, 2023
7b5f766
add docker-slim
pourmand1376 Sep 3, 2023
28ba5bd
add on
pourmand1376 Sep 3, 2023
6dc4e97
update
pourmand1376 Sep 3, 2023
b302764
update condition
pourmand1376 Sep 3, 2023
98db1de
update
pourmand1376 Sep 3, 2023
a1cf294
cd
pourmand1376 Sep 3, 2023
74964d2
cd .
pourmand1376 Sep 3, 2023
74ee6cc
add working
pourmand1376 Sep 3, 2023
70483f8
update
pourmand1376 Sep 3, 2023
fd73559
update path
pourmand1376 Sep 3, 2023
857dc14
update
pourmand1376 Sep 3, 2023
317910b
update
pourmand1376 Sep 3, 2023
621358a
add workdir
pourmand1376 Sep 3, 2023
1e65066
add
pourmand1376 Sep 3, 2023
73394a5
update
pourmand1376 Sep 3, 2023
0408602
.
pourmand1376 Sep 3, 2023
7015905
add dockercompose
pourmand1376 Sep 3, 2023
d1377b0
slim
pourmand1376 Sep 3, 2023
46fad1b
edit docker-compose
pourmand1376 Sep 3, 2023
63a596d
update
pourmand1376 Sep 3, 2023
a74d5db
http probe
pourmand1376 Sep 3, 2023
41711f5
path
pourmand1376 Sep 3, 2023
9ff9f87
Update docker-slim.yml
pourmand1376 Sep 12, 2023
62de9c4
Update docker-slim.yml
pourmand1376 Oct 2, 2023
345ade0
Update docker-slim.yml
pourmand1376 Oct 2, 2023
36e4069
Update docker-slim.yml
pourmand1376 Oct 2, 2023
db86ab8
Update docker-slim.yml
pourmand1376 Oct 2, 2023
66c2c5c
Update docker-slim.yml
pourmand1376 Oct 2, 2023
0d1c280
Update docker-slim.yml
pourmand1376 Oct 2, 2023
4b663a3
Update docker-slim.yml
pourmand1376 Oct 2, 2023
2220d9d
Update docker-slim.yml
pourmand1376 Oct 2, 2023
e9442f4
Update docker-slim.yml
pourmand1376 Oct 2, 2023
60f4275
Update docker-slim.yml
pourmand1376 Oct 2, 2023
430194f
Update deploy-image.yml
pourmand1376 Oct 3, 2023
0114280
Update deploy-image.yml
pourmand1376 Oct 3, 2023
159df21
Update docker-slim.yml
pourmand1376 Oct 3, 2023
138b129
Update deploy-image.yml
pourmand1376 Oct 3, 2023
5363ee0
Update deploy-image.yml
pourmand1376 Oct 3, 2023
7453b12
Merge remote-tracking branch 'remotes/upstream/master' into add-docke…
pourmand1376 Oct 3, 2023
6f9addf
Update deploy-image.yml
pourmand1376 Oct 3, 2023
8ff597a
Update deploy-image.yml
pourmand1376 Oct 3, 2023
85e3f87
Update docker-slim.yml
pourmand1376 Oct 3, 2023
b274d68
Update docker-slim.yml
pourmand1376 Oct 7, 2023
584c901
Delete .github/workflows/deploy-image.yml
pourmand1376 Oct 7, 2023
e5eed5b
revert deploy-image
pourmand1376 Oct 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/docker-slim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Docker Slim

#Only trigger, when the build workflow succeeded
on:
workflow_run:
workflows: ["Docker Image CI"]
types:
- completed

# on:
# push:
# branches:
# - 'master'

jobs:
build:
runs-on: ubuntu-latest
if: github.repository_owner == 'alshedivat'

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.yml
cat ${{ github.workspace }}/docker-compose.yml

- uses: kitabisa/docker-slim-action@v1.0.3
env:
DSLIM_PULL: true
DSLIM_COMPOSE_FILE: ${{ github.workspace }}/docker-compose.yml
DSLIM_TARGET_COMPOSE_SVC: jekyll
DSLIM_CONTINUE_AFTER: signal
with:
target: amirpourmand/al-folio
tag: "slim"

# Push to the registry
- run: docker image push amirpourmand/al-folio:slim