diff --git a/.github/workflows/push-image.yml b/.github/workflows/push-image.yml index bda711a..0fbcd53 100644 --- a/.github/workflows/push-image.yml +++ b/.github/workflows/push-image.yml @@ -44,20 +44,17 @@ jobs: env: INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} - - name: Push To Dockerhub - env: - INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} - INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} - run: | - DOCKERHUB_ORG="initializ-buildpacks" - registry_repo="go-securepack" - - echo "${INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin - docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest" - docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" - - docker push "${DOCKERHUB_ORG}/${registry_repo}:latest" - docker push "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" + run: | + DOCKERHUB_ORG="initializbuildpacks" + registry_repo="go-securepack" + + echo "${INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin + docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest" + docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" + + docker push "${DOCKERHUB_ORG}/${registry_repo}:latest" + docker push "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" + failure: diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 079d829..92ef45e 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -19,8 +19,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Run Smoke Tests - run: ./scripts/smoke.sh + - name: Run smoke test + run: | + chmod +x ./scripts/smoke.sh + ./scripts/smoke.sh upload: name: Upload Workflow Event Payload diff --git a/README.md b/README.md index 1f67062..2146542 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -Go Securepacks +Initaliz Buildpacks for go diff --git a/builder.toml b/builder.toml index 64f9bf0..13dbc62 100644 --- a/builder.toml +++ b/builder.toml @@ -1,18 +1,20 @@ -description = "Initializ Distroless base image with buildpacks for Go" +description = "Initializ Buildpack for Go" [[buildpacks]] - uri = "index.docker.io/initializbuildpacks/go@sha256:8e758c18ee1cb5bb4bf1b31b7989cbe17bc9ec424f9b1765ba9345b00f116286" - version = "1.0.5" + uri = "docker://docker.io/initializbuildpacks/go:1.0.8" + version = "1.0.8" + +[lifecycle] + version = "0.19.3" [[order]] - + [[order.group]] id = "initializ-buildpacks/go" - version = "1.0.5" - -# Base images used to create the builder + version = "1.0.8" + [stack] - build-image = "docker.io/initializbuildpacks/securepacks-build" + build-image = "docker.io/initializbuildpacks/go-securepack-build:0.0.1" id = "Initializ Distroless Stack" - run-image = "docker.io/initializbuildpacks/securepacks-run:latest" + run-image = "docker.io/initializbuildpacks/go-securepack-run:latest" run-image-mirrors = []