Skip to content

Commit 4c3a690

Browse files
committed
Docker: update dockerfile/scripts for new image name
1 parent b55b8c2 commit 4c3a690

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ COPY . .
55
RUN apk update && apk add --virtual .build-deps bash git make \
66
&& make \
77
&& mv bin/ct /usr/bin/ \
8-
&& mv Dockerfile.build-alpine /tmp \
98
&& rm -rf $GOPATH \
109
&& apk del .build-deps && rm -rf /var/cache/apk
11-
WORKDIR /tmp
12-
ENTRYPOINT ["/usr/bin/ct"]
10+
11+
FROM scratch
12+
COPY --from=0 /usr/bin/ct /ct
13+
ENTRYPOINT ["/ct"]

Dockerfile.build-alpine

Lines changed: 0 additions & 3 deletions
This file was deleted.

docker-build

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,5 @@
22

33
set -e
44
VERSION=$(git describe)
5-
docker build -t $VERSION .
6-
docker run --rm --entrypoint tar $VERSION -c /usr/bin/ct Dockerfile.build-alpine \
7-
| docker build -f Dockerfile.build-alpine --tag quay.io/coreos/ct:$VERSION -
8-
docker tag quay.io/coreos/ct:$VERSION quay.io/coreos/ct:latest-dev
5+
docker build --tag ghcr.io/flatcar-linux/ct:$VERSION .
6+
docker tag ghcr.io/flatcar-linux/ct:$VERSION ghcr.io/flatcar-linux/ct:latest-dev

docker-push

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
set -e
44
VERSION=$(git describe)
5-
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" quay.io
6-
docker push quay.io/coreos/ct:$VERSION
7-
docker push quay.io/coreos/ct:latest-dev
5+
docker push ghcr.io/flatcar-linux/ct:$VERSION
6+
docker push ghcr.io/flatcar-linux/ct:latest-dev

0 commit comments

Comments
 (0)