Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Naveen-is-here committed May 7, 2024
2 parents d964327 + 53f526d commit 604af4e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 26 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Go Securepacks
Initaliz Buildpacks for go
20 changes: 11 additions & 9 deletions builder.toml
Original file line number Diff line number Diff line change
@@ -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 = []

0 comments on commit 604af4e

Please sign in to comment.