File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 11name : CI
2-
3- on : [push, pull_request]
2+ on :
3+ push :
4+ branches :
5+ - master@kool-dev/docker-toolkit
6+ pull_request :
7+ branches :
8+ - ' *'
49
510jobs :
611 build :
712 runs-on : ubuntu-latest
8-
913 steps :
1014 - name : Checkout code
1115 uses : actions/checkout@master
1418 run : |
1519 docker build --pull -t kooldev/toolkit:terraform-aws terraform-aws
1620 docker build -t kooldev/toolkit:full full
21+
1722 - name : Test docker images
1823 run : |
1924 docker run -t --rm kooldev/toolkit:terraform-aws terraform --version
2631 docker run -t --rm kooldev/toolkit:full docker-compose --version
2732 docker run -t --rm kooldev/toolkit:full doctl version
2833 docker run -t --rm kooldev/toolkit:full helm version
34+
35+ deploy :
36+ runs-on : ubuntu-latest
37+ steps :
2938 - name : Push to Hub
3039 if : github.event_name == 'push' && github.ref == 'refs/heads/master'
3140 env :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ RUN curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VER
3030
3131# Cleanup
3232RUN apk del .build-deps && \
33- rm -rf /tmp/*
33+ rm -rf /tmp/* /var/cache/apk/*
3434
3535WORKDIR /app
3636
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ RUN curl -L https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2
3535
3636# Cleanup
3737RUN apk del .build-deps && \
38- rm -rf /tmp/*
38+ rm -rf /tmp/* /var/cache/apk/*
3939
4040WORKDIR /app
4141
You can’t perform that action at this time.
0 commit comments