Skip to content

Commit

Permalink
docker-image.yml — build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
seanharrison committed Jul 5, 2020
1 parent 962d23d commit 9caf518
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
- uses: actions/checkout@v2
- name: Build the Docker image
run: >-
docker build docker --file Dockerfile.alpine --tag kruxia/svn:alpine
docker tag kruxia/svn:alpine kruxia/svn:alpine-$(date +%s)
TIMESTAMP=$(date -u +%Y%m%d%H%M%S)
SHORT_SHA=$(git rev-parse --short HEAD)
docker build docker --file alpine.Dockerfile --tag kruxia/svn:alpine
docker tag kruxia/svn:alpine kruxia/svn:alpine-$TIMESTAMP-$SHORT_SHA
docker tag kruxia/svn:alpine kruxia/svn
docker build docker --file Dockerfile.buster-slim --tag kruxia/svn:buster-slim
docker tag kruxia/svn:alpine kruxia/svn:buster-slim-$(date +%s)
docker build docker --file buster-slim.Dockerfile --tag kruxia/svn:buster-slim
docker tag kruxia/svn:alpine kruxia/svn:buster-slim-$TIMESTAMP-$SHORT_SHA

0 comments on commit 9caf518

Please sign in to comment.