Skip to content

Commit

Permalink
ghcr.io test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim committed Aug 30, 2023
1 parent 4ff458b commit 6d0e62d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/go-ossf-slsa3-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,17 @@ jobs:
actions: read # To read workflow path.
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
go-version: 1.17
go-version: 1.21
# =============================================================================================================
# Optional: For more options, see https://github.com/slsa-framework/slsa-github-generator#golang-projects
# =============================================================================================================

build_and_publish_image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and push the image
run: |
docker login --username pommes --password ${{ secrets.GHCR_IMAGE_REGISTRY_SECRET }} ghcr.io
docker build . --tag ghcr.io/pommes/nginx-proxy-metrics:latest
docker push ghcr.io/pommes/nginx-proxy-metrics:latest
12 changes: 12 additions & 0 deletions build_image_amd64-ghcr-latest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

./build.sh

export DOCKER_CLI_EXPERIMENTAL=enabled
docker buildx version
docker buildx create --use --name mybuilder
docker buildx inspect mybuilder --bootstrap

docker buildx build --platform linux/amd64 -t ghcr.io/pommes/nginx-proxy-metrics:latest . --load

docker push ghcr.io/pommes/nginx-proxy-metrics:latest

0 comments on commit 6d0e62d

Please sign in to comment.