diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..be89012 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +ARG GO_VERSION=1.18-alpine3.15 +ARG FROM_IMAGE=alpine:3.15 + +FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS builder + +ARG TARGETOS +ARG TARGETARCH +ARG VERSION + +LABEL org.opencontainers.image.source="https://github.com/OpsVerseIO/argocd-sync" + +WORKDIR /app + +COPY ./ /app + +RUN apk update && \ + apk add ca-certificates gettext git make curl unzip && \ + rm -rf /tmp/* && \ + rm -rf /var/cache/apk/* && \ + rm -rf /var/tmp/* + +RUN make build TARGETOS=$TARGETOS TARGETARCH=$TARGETARCH VERSION=$VERSION + +FROM ${FROM_IMAGE} + +COPY --from=builder /app/dist/argocd-actions /bin/argocd-actions + +ENTRYPOINT ["argocd-actions"] \ No newline at end of file diff --git a/action.yml b/action.yml index aff5c2f..ab91d6f 100644 --- a/action.yml +++ b/action.yml @@ -33,7 +33,7 @@ runs: steps: - name: Run argocd-actions CLI from the image for GH image registry run: | - docker run --rm -i ghcr.io/omegion/argocd-actions:${{ inputs.image }} \ + docker run --rm -i registry.devopsnow.io/public/argocd-sync-action:${{ inputs.image }} \ ${{ inputs.action }} \ --application=${{ inputs.appName }} \ --token=${{ inputs.token }} \