Skip to content

Commit 6ea58d3

Browse files
committed
feat: rename stable container tag to latest
1 parent b033511 commit 6ea58d3

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/vib-build.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- 'dev'
7+
- 'vision'
78
tags:
89
- '*'
910
workflow_dispatch:
@@ -20,7 +21,7 @@ jobs:
2021
- name: Verify Base Image Integrity
2122
if: ${{ github.ref_type == 'tag' }}
2223
run:
23-
gh attestation verify oci://ghcr.io/vanilla-os/pico:dev --owner Vanilla-OS
24+
gh attestation verify oci://ghcr.io/vanilla-os/pico:latest --owner Vanilla-OS
2425
env:
2526
GH_TOKEN: ${{ github.token }}
2627

@@ -44,9 +45,14 @@ jobs:
4445
- uses: actions/checkout@v6
4546

4647
- name: Change tag in recipe.
47-
if: ${{ github.ref_type == 'tag' }}
48+
if: ${{ github.ref_type != 'tag' }}
4849
run: |
49-
sed 's/ghcr.io\/vanilla-os\/pico:dev/ghcr.io\/vanilla-os\/pico:main/' -i recipe.yml
50+
if [ -n "${{ github.base_ref }}" ]; then
51+
TAG="${{ github.base_ref }}"
52+
else
53+
TAG="${{ github.ref_name }}"
54+
fi
55+
sed "s/ghcr.io\/vanilla-os\/pico:latest/ghcr.io\/vanilla-os\/pico:$TAG/" -i recipe.yml
5056
5157
- uses: vanilla-os/vib-gh-action@v1.1.0
5258
with:
@@ -156,7 +162,7 @@ jobs:
156162
- name: Extra image tag release
157163
if: ${{ github.ref_type == 'tag' }}
158164
run: |
159-
echo "EXTRA_TAG=raw,main" >> "$GITHUB_ENV"
165+
echo "EXTRA_TAG=raw,latest" >> "$GITHUB_ENV"
160166
161167
- name: Docker meta
162168
id: meta

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ podman image build -t vanillaos/core .
1818
All the image builds/pushes are attested for build provenance and integrity using the [attest-build-provenance`](https://github.com/actions/attest-build-provenance) action. The attestations can be verified [here](https://github.com/Vanilla-OS/core-image/attestations) or by having the latest version of [GitHub CLI](https://github.com/cli/cli/releases/latest) installed in your system. Then, execute the following command:
1919

2020
```sh
21-
gh attestation verify oci://ghcr.io/vanilla-os/core:main --owner Vanilla-OS
21+
gh attestation verify oci://ghcr.io/vanilla-os/core:latest --owner Vanilla-OS
2222
```

recipe.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ vibversion: 1.1.0
44

55
stages:
66
- id: build
7-
base: ghcr.io/vanilla-os/pico:dev
7+
base: ghcr.io/vanilla-os/pico:latest
88
addincludes: true
99
singlelayer: false
1010
labels:

0 commit comments

Comments
 (0)