forked from atmoz/sftp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for versioned docker tags
Fixes atmoz#291
- Loading branch information
Nico Schottelius
committed
Nov 19, 2021
1 parent
302390e
commit 93f8bac
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM debian:buster | ||
FROM debian:VERSION | ||
MAINTAINER Adrian Dvergsdal [atmoz.net] | ||
|
||
# Steps done in one RUN layer: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM alpine:latest | ||
FROM alpine:VERSION | ||
MAINTAINER Adrian Dvergsdal [atmoz.net] | ||
|
||
# Steps done in one RUN layer: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "$0 version" | ||
echo "builds image with alpine <version>, i.e. '3.14'" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
|
||
version=$1; shift | ||
|
||
tmp=$(mktemp) | ||
tag=atmoz/sftp:alpine-$version | ||
|
||
sed "s/alpine:VERSION/alpine:$version/" Dockerfile-alpine > $tmp | ||
docker build -t "$tag" -f "$tmp" . | ||
docker push "$tag" | ||
rm -f "$tmp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "$0 version" | ||
echo "builds image with debian <version>, i.e. 'bullseye'" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
|
||
version=$1; shift | ||
|
||
tmp=$(mktemp) | ||
tag=atmoz/sftp:debian-$version | ||
|
||
sed "s/debian:VERSION/debian:$version/" Dockerfile > $tmp | ||
docker build -t "$tag" -f "$tmp" . | ||
docker push "$tag" | ||
rm -f "$tmp" |