Skip to content

Bump toml from 0.8.13 to 0.8.14 in the dependencies group (#150) #522

Bump toml from 0.8.13 to 0.8.14 in the dependencies group (#150)

Bump toml from 0.8.13 to 0.8.14 in the dependencies group (#150) #522

Workflow file for this run

name: ocipkg
on:
push:
branches:
- main
- dev-*
pull_request: {}
jobs:
pack:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/cargo@v1
with:
command: install
args: --path=ocipkg-cli/ -f
- name: Add path
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: pack src/
run: |
ocipkg pack ocipkg/src/ out.tar -t test_repo/testing:tag1
- name: Testing podman can load the generated container
run: |
podman load < out.tar
podman images | grep test_repo/testing | grep tag1
load:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/cargo@v1
with:
command: install
args: --path=ocipkg-cli/ -f
- name: Add path
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Create test oci-archive using podman
run: |
podman pull alpine
podman save -o oci-alpine.tar --format oci-archive alpine
- name: load oci-archive
run: |
ocipkg load oci-alpine.tar
- name: Show alpine version
run: cat $HOME/.local/share/ocipkg/docker.io/library/alpine/__latest/etc/alpine-release
get:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/cargo@v1
with:
command: install
args: --path=ocipkg-cli/ -f
- name: Add path
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: get image of old style (OCI image spec 1.0 based) from ghcr.io
run: |
ocipkg get ghcr.io/termoshtt/ocipkg/dynamic/rust:1d23f83
- name: get image of new style (OCI Artifact based) from ghcr.io
run: |
ocipkg get ghcr.io/termoshtt/ocipkg/static/rust:9a042e8
- name: ocipkg list
run: test $(ocipkg list | wc -l) -eq 2
push:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions-rs/cargo@v1
with:
command: install
args: --path=ocipkg-cli/ -f
- name: Add path
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: pack src/ and push
run: |
ocipkg pack ocipkg/src out.tar -t localhost:5000/test_repo:new_tag
ocipkg push out.tar
- name: Test image has been pushed
run: curl -sf localhost:5000/v2/test_repo/tags/list | jq -e '.tags[] | select(test("new_tag"))'
services:
registry:
image: registry:2
ports:
- 5000:5000