From 6e4a97f1f37a1607e3ca8a5f2b8baee5cbb7a4c4 Mon Sep 17 00:00:00 2001 From: "Giau. Tran Minh" Date: Mon, 16 Dec 2024 18:40:42 +0700 Subject: [PATCH] chore: added script to build my image --- giautm.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 giautm.sh diff --git a/giautm.sh b/giautm.sh new file mode 100755 index 00000000..1109fb1e --- /dev/null +++ b/giautm.sh @@ -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