Skip to content

Commit 5871eed

Browse files
authored
build: Update actions versions and push test image (#21)
Update the test_image workflow to push a test image to the registry, so we make sure the push action works as expected before releasing the latest version.
1 parent 0b77a90 commit 5871eed

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
id-token: write # required for signing with cosign
6363
steps:
6464
- name: Check out the repo
65-
uses: actions/checkout@v4
65+
uses: actions/checkout@v5
6666

6767
- name: Log in to GitHub Container Registry
6868
uses: docker/login-action@v3
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Build and push Docker image
7575
id: build-and-push
76-
uses: docker/build-push-action@v5
76+
uses: docker/build-push-action@v6
7777
with:
7878
context: .
7979
push: true

.github/workflows/test_image.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
runs-on: ubuntu-latest
2525
permissions:
2626
contents: read # required for actions/checkout
27+
packages: write # required for pushing the test image to ghcr.io
2728
steps:
2829
- name: Check out the repo
29-
uses: actions/checkout@v4
30+
uses: actions/checkout@v5
3031
with:
3132
ref: ${{ github.sha }} # required for better experience using pre-releases
3233
fetch-depth: "0" # Required due to the way Git works, without it this action won't be able to find any or the correct tags
@@ -38,13 +39,13 @@ jobs:
3839
username: ${{ github.actor }}
3940
password: ${{ secrets.GITHUB_TOKEN }}
4041

41-
- name: Build Docker image
42+
- name: Build Docker image and test push action
4243
id: build-to-test
43-
uses: docker/build-push-action@v5
44+
uses: docker/build-push-action@v6
4445
with:
4546
context: .
4647
load: true
47-
push: false
48+
push: true
4849
tags: |
4950
ghcr.io/sysdiglabs/sysdig-mcp-server:test
5051

0 commit comments

Comments
 (0)