diff --git a/.github/workflows/porter_stack_stefantest-graviton.yml b/.github/workflows/porter_stack_stefantest-graviton.yml new file mode 100644 index 0000000..bf626b8 --- /dev/null +++ b/.github/workflows/porter_stack_stefantest-graviton.yml @@ -0,0 +1,40 @@ +"on": + push: + branches: + - porter-stack-stefan-testcachemultistep-9570a955 +name: Deploy to stefan-testcachemultistep +jobs: + porter-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set Github tag + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT + - name: Set Github tag log + id: vars2 + run: echo "sha_long=$(git log -1 --format=%H)" >> $GITHUB_OUTPUT + - name: Setup porter + uses: porter-dev/setup-porter@v0.1.0 + + - name: Deploy stack + timeout-minutes: 30 + run: | + porter version + echo "stefan" $OSTYPE; arch; uname -a + porter apply + env: + PORTER_CLUSTER: "11" + PORTER_DEPLOYMENT_TARGET_ID: b4d65cbc-45ec-43e1-9e44-d58cb5de3352 + PORTER_HOST: https://dashboard.internal-tools.porter.run + PORTER_PR_NUMBER: ${{ github.event.number }} + PORTER_PROJECT: "8" + PORTER_REPO_NAME: ${{ github.event.repository.name }} + PORTER_APP_NAME: stefantest-graviton + PORTER_TAG: ${{ steps.vars2.outputs.sha_long }} + PORTER_TOKEN: ${{ secrets.PORTER_STACK_8_11 }} + GH_TOKEN: ${{ github.token }} + DOCKER_BUILDKIT: 1 + STEFAN_ENV: fromGHA + diff --git a/DockerfileStefanTest b/DockerfileStefanTest new file mode 100644 index 0000000..c19170a --- /dev/null +++ b/DockerfileStefanTest @@ -0,0 +1,21 @@ +FROM golang:1.20.1 as installer +WORKDIR /porter +ARG STEFAN_ENV=dockerdefault +ENV SECOND_VAR ${STEFAN_ENV} +ENV THIRD_VAR $STEFAN_ENV + +RUN echo "envs2" $STEFAN_ENV $SECOND_VAR +RUN echo "envs3" $STEFAN_ENV $THIRD_VAR + + +RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates +RUN go install github.com/go-delve/delve/cmd/dlv@latest +RUN chmod +x /go/bin/dlv + + + +FROM debian:bullseye-slim as runner +WORKDIR /porter +RUN apt-get update && apt-get install -y --no-install-recommends sqlite3 curl +COPY --from=installer /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ +RUN curl google.com