forked from lukaskroepfl/monitoring-nginx-proxy-companion
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tim
committed
Aug 30, 2023
1 parent
4ff458b
commit 6d0e62d
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |