-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from sapcc/gh-build-images
bump go-makefile-maker and enable image build
- Loading branch information
Showing
10 changed files
with
185 additions
and
35 deletions.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
# SPDX-FileCopyrightText: 2019–2020 Target, Copyright 2021 The Nix Community | ||
# SPDX-License-Identifier: Apache-2.0 | ||
if type -P lorri &>/dev/null; then | ||
eval "$(lorri direnv)" | ||
else | ||
use nix | ||
fi |
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
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
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
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,56 @@ | ||
################################################################################ | ||
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> # | ||
# Edit Makefile.maker.yaml instead. # | ||
################################################################################ | ||
|
||
# Copyright 2024 SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
name: Container Registry GHCR | ||
"on": | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: {} | ||
permissions: | ||
contents: read | ||
packages: write | ||
jobs: | ||
build-and-push-image: | ||
name: Push container to ghcr.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ghcr.io/${{ github.repository }} | ||
tags: | | ||
# https://github.com/docker/metadata-action#typeedge | ||
type=edge | ||
# https://github.com/docker/metadata-action#latest-tag | ||
type=raw,value=latest,enable={{is_default_branch}} | ||
# https://github.com/docker/metadata-action#typesemver | ||
type=semver,pattern={{raw}} | ||
type=semver,pattern=v{{major}}.{{minor}} | ||
type=semver,pattern=v{{major}} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
labels: ${{ steps.meta.outputs.labels }} | ||
platforms: linux/amd64 | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} |
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
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
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
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,18 @@ | ||
# SPDX-FileCopyrightText: SAP SE | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version = 1 | ||
|
||
[[annotations]] | ||
path = [ | ||
".github/CODEOWNERS", | ||
".github/renovate.json", | ||
".gitignore", | ||
".license-scan-overrides.jsonl", | ||
".license-scan-rules.json", | ||
"go.mod", | ||
"go.sum", | ||
"Makefile.maker.yaml", | ||
] | ||
SPDX-FileCopyrightText = "SAP SE" | ||
SPDX-License-Identifier = "Apache-2.0" |
Oops, something went wrong.