Skip to content

Commit b82d617

Browse files
Merge pull request #112 from interlynk-io/fix/actions
Fix ghcr builds
2 parents 526a787 + 8f7a785 commit b82d617

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

.github/workflows/build.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
workflow_dispatch:
66

77
env:
8-
REGISTRY: ghcr.io
9-
IMAGE_NAME: ${{ github.repository }}
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
1010

1111
jobs:
1212
build-and-push-image:
@@ -16,26 +16,26 @@ jobs:
1616
packages: write
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
21-
fetch-depth: 0
21+
fetch-depth: 0
2222
- name: GHCR login
23-
uses: docker/login-action@v2
23+
uses: docker/login-action@v3
2424
with:
25-
registry: '${{ env.REGISTRY }}'
26-
username: '${{ github.actor }}'
27-
password: '${{ secrets.GITHUB_TOKEN }}'
25+
registry: "${{ env.REGISTRY }}"
26+
username: "${{ github.actor }}"
27+
password: "${{ secrets.GITHUB_TOKEN }}"
2828
- name: Set up QEMU
29-
uses: docker/setup-qemu-action@v2
29+
uses: docker/setup-qemu-action@v3
3030
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v2
31+
uses: docker/setup-buildx-action@v3
3232
- name: Extract metadata (tags, labels) for Docker
3333
id: meta
34-
uses: docker/metadata-action@v4
34+
uses: docker/metadata-action@v5
3535
with:
3636
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3737
- name: Build and push
38-
uses: docker/build-push-action@v2
38+
uses: docker/build-push-action@v6
3939
with:
4040
context: .
4141
platforms: linux/amd64, linux/arm64

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
id-token: write
2424
contents: write
2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
- run: git fetch --force --tags
@@ -38,7 +38,7 @@ jobs:
3838
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.1')" >> $GITHUB_ENV
3939

4040
- name: Goreleaser
41-
uses: goreleaser/goreleaser-action@v4
41+
uses: goreleaser/goreleaser-action@v6
4242
with:
4343
install-only: true
4444

.github/workflows/sbom_dev.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
contents: write
3131
steps:
3232
- name: Checkout Repository
33-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
3636

@@ -39,7 +39,7 @@ jobs:
3939
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.1')" >> $GITHUB_ENV
4040

4141
- name: Set up Python
42-
uses: actions/setup-python@v4
42+
uses: actions/setup-python@v5
4343
with:
4444
python-version: "3.x" # Specify the Python version needed
4545

@@ -65,7 +65,7 @@ jobs:
6565
curl -Lo $RUNNER_TEMP/sbom-tool ${{ env.MS_SBOM_TOOL_URL }}
6666
chmod +x $RUNNER_TEMP/sbom-tool
6767
SANITIZED_REF=$(echo "${{ github.ref_name}}" | sed -e 's/[^a-zA-Z0-9.-]/-/g' -e 's/^[^a-zA-Z0-9]*//g')
68-
VERSION=${{ env.LATEST_TAG }}-$SANITIZED_REF
68+
VERSION=${{ env.LATEST_TAG }}-$SANITIZED_REF
6969
$RUNNER_TEMP/sbom-tool generate -b ${{ env.SBOM_TEMP_DIR }} -bc . -pn ${{ env.TOOL_NAME }} -pv $VERSION -ps ${{ env.SUPPLIER_NAME}} -nsb ${{ env.SUPPLIER_URL }} -cd "--DirectoryExclusionList ${{ env.MS_SBOM_TOOL_EXCLUDE_DIRS }}"
7070
7171
- name: Upload SBOM

.github/workflows/sbom_release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
contents: write
2727
steps:
2828
- name: Checkout Repository
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@v4
3030
with:
3131
fetch-depth: 0
3232

@@ -35,7 +35,7 @@ jobs:
3535
run: echo "LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo 'v0.0.1')" >> $GITHUB_ENV
3636

3737
- name: Set up Python
38-
uses: actions/setup-python@v4
38+
uses: actions/setup-python@v5
3939
with:
4040
python-version: "3.x" # Specify the Python version needed
4141

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Use buildx for multi-platform builds
22
# Build stage
3-
FROM --platform=$BUILDPLATFORM golang:1.22.2-alpine AS builder
3+
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder
44
LABEL org.opencontainers.image.source="https://github.com/interlynk-io/sbomasm"
55

66
RUN apk add --no-cache make git

0 commit comments

Comments
 (0)