Skip to content

Commit

Permalink
b
Browse files Browse the repository at this point in the history
  • Loading branch information
giautm committed Dec 19, 2024
1 parent 755b9ea commit 36e2dc0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ ARG ALPINE_VERSION="3.21"
FROM alpine:${ALPINE_VERSION}
COPY LICENSE README.md /
COPY --chmod=001 ./scripts/setup-atlas.sh /usr/local/bin/setup-atlas
COPY --chmod=001 ./atlas-action /usr/local/bin/
RUN apk add --update --no-cache curl
RUN setup-atlas && rm -rf /root/.atlas /tmp/*
RUN apk add --update --no-cache curl && \
setup-atlas && rm -rf /root/.atlas /tmp/*
WORKDIR /root
VOLUME /root/.atlas
COPY --chmod=001 ./atlas-action /usr/local/bin/
ENTRYPOINT ["/usr/local/bin/atlas-action"]
10 changes: 10 additions & 0 deletions giautm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env sh

set -e
export GOOS=linux
export GOARCH=amd64
IMAGE=giautm/atlas-action:dev
go build -ldflags "-s -w" -o atlas-action ./cmd/atlas-action

docker build --platform=$GOOS/$GOARCH -t $IMAGE -f ./Dockerfile .
docker push $IMAGE

0 comments on commit 36e2dc0

Please sign in to comment.