Skip to content

Commit a18c8bc

Browse files
committed
Test github actions
1 parent b9f2877 commit a18c8bc

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
name: 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

510
jobs:
611
build:
712
runs-on: ubuntu-latest
8-
913
steps:
1014
- name: Checkout code
1115
uses: actions/checkout@master
@@ -14,6 +18,7 @@ jobs:
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
@@ -26,6 +31,10 @@ jobs:
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:

full/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN curl -L https://github.com/digitalocean/doctl/releases/download/v${DOCTL_VER
3030

3131
# Cleanup
3232
RUN apk del .build-deps && \
33-
rm -rf /tmp/*
33+
rm -rf /tmp/* /var/cache/apk/*
3434

3535
WORKDIR /app
3636

terraform-aws/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN curl -L https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2
3535

3636
# Cleanup
3737
RUN apk del .build-deps && \
38-
rm -rf /tmp/*
38+
rm -rf /tmp/* /var/cache/apk/*
3939

4040
WORKDIR /app
4141

0 commit comments

Comments
 (0)