Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve building and deploying containers #490

Merged
merged 15 commits into from
Mar 17, 2024

Conversation

kachick
Copy link
Owner

@kachick kachick commented Mar 17, 2024

May fix #471

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

containers/podman#14065

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/49c9aaa3806d3ba63fc576cc1dc923732be8671d/containers/sandbox-with-ghcr.bash') '49c9aaa3806d3ba63fc576cc1dc923732be8671d'

The package detail

{
  "created_at": "2024-03-17T01:31:46Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191929543",
  "id": 191929543,
  "metadata": {
    "container": {
      "tags": [
        "20240317-012655-utc",
        "49c9aaa3806d3ba63fc576cc1dc923732be8671d",
        "pr-490-49c9aaa3806d3ba63fc576cc1dc923732be8671d"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:623b4e77e277f5cf845480beead2a66d051088c4613068329740c73aa503d7fc",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T01:31:46Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191929543"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

containers/podman#14302

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

containers/podman#13302

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0/containers/sandbox-with-ghcr.bash') 'fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0'

The package detail

{
  "created_at": "2024-03-17T01:46:39Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191932658",
  "id": 191932658,
  "metadata": {
    "container": {
      "tags": [
        "20240317-014200-utc",
        "fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0",
        "pr-490-fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:3e18eb494c2aaf4ffe841117aeb7d94138a8b22203fb8cfd2f32f91f2766fede",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T01:46:39Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191932658"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

stacked pulling this image 🤔

> podman pull ghcr.io/kachick/home:pr-490-fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0
Trying to pull ghcr.io/kachick/home:pr-490-fe13f8d2eb9c99ee35522ff2dab052d1fbf4d6c0...
Getting image source signatures
Copying blob sha256:d7eaba6adf724f951c7120c8ce6468125e1dcd45b33221042f17861114fd8230
Copying blob sha256:91b71913b0f97e014631a9dc3933a7181433a99fee3d6718db3288a1b16c2886
Copying blob sha256:44b4f702c7d5e411c192b11b619c28e92aabd06a0779ca7c6429cdc0eef5f421
Copying blob sha256:4fc040f7e1383de9958eba8ff87584cfbcdd20a81a2063dd369072d1c9e206a5

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

Available again after recreate podman machine

Comment on lines -69 to -85
# Update crun: https://noobient.com/2023/11/15/fixing-ubuntu-containers-failing-to-start-with-systemd/
# TODO: Integrate selfup here
CRUN_VER='1.14.4'
mkdir -p "${HOME}/.local/bin"
curl -L "https://github.com/containers/crun/releases/download/${CRUN_VER}/crun-${CRUN_VER}-linux-amd64" -o "${HOME}/.local/bin/crun"
chmod +x "${HOME}/.local/bin/crun"
# We can remove this since ubuntu-24.04, but keeping maybe better
- name: Update crun in podman
run: |
mkdir -p "${HOME}/.config/containers"
cat << EOF > "${HOME}/.config/containers/containers.conf"
[engine.runtimes]
crun = [
"${HOME}/.local/bin/crun",
"/usr/bin/crun"
]
EOF
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

crun version 1.14.4 in both before and after

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/69a77bab69568f2cf98755af9e86361bbb266b53/containers/sandbox-with-ghcr.bash') '69a77bab69568f2cf98755af9e86361bbb266b53'

The package detail

{
  "created_at": "2024-03-17T03:01:45Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191944095",
  "id": 191944095,
  "metadata": {
    "container": {
      "tags": [
        "20240317-025702-utc",
        "69a77bab69568f2cf98755af9e86361bbb266b53",
        "pr-490-69a77bab69568f2cf98755af9e86361bbb266b53"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:9756966fb8c9dbae39c7df267e21198cc6891b2ff8a023a9c0311ca757a72bdb",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T03:01:45Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191944095"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/4a202fef9f05afedce9083d8c6160d2be9cd7624/containers/sandbox-with-ghcr.bash') '4a202fef9f05afedce9083d8c6160d2be9cd7624'

The package detail

{
  "created_at": "2024-03-17T04:14:07Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191952640",
  "id": 191952640,
  "metadata": {
    "container": {
      "tags": [
        "20240317-040935-utc",
        "4a202fef9f05afedce9083d8c6160d2be9cd7624",
        "pr-490-4a202fef9f05afedce9083d8c6160d2be9cd7624"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:d8d1a8c189ac67a7b1e047ddbb821e079dda3f2b3df4df0b74da51730d28c7f3",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T04:14:07Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191952640"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/474b86c84f9bcbe35571b5e8a2b18d0d0e9b280e/containers/sandbox-with-ghcr.bash') '474b86c84f9bcbe35571b5e8a2b18d0d0e9b280e'

The package detail

{
  "created_at": "2024-03-17T05:01:59Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191958650",
  "id": 191958650,
  "metadata": {
    "container": {
      "tags": [
        "20240317-045718-utc",
        "474b86c84f9bcbe35571b5e8a2b18d0d0e9b280e",
        "pr-490-474b86c84f9bcbe35571b5e8a2b18d0d0e9b280e"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:4da971cad2332361e1a1fff20110dcbbfa9ad37aa439306f1deb733ed2bdb2cd",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T05:01:59Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191958650"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/974c902f5b117a692044d6cbe09459a533ea012c/containers/sandbox-with-ghcr.bash') '974c902f5b117a692044d6cbe09459a533ea012c'

The package detail

{
  "created_at": "2024-03-17T07:16:49Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/191975347",
  "id": 191975347,
  "metadata": {
    "container": {
      "tags": [
        "20240317-071214-utc",
        "974c902f5b117a692044d6cbe09459a533ea012c",
        "pr-490-974c902f5b117a692044d6cbe09459a533ea012c"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:1983e40202516cc214b1c028c060a20d1a80bedeac2b29b7491e11b8243a8c42",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T07:16:49Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/191975347"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

kachick added a commit to kachick/containers that referenced this pull request Mar 17, 2024
@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

redhat-actions/buildah-build#60 👁️

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

https://github.com/redhat-actions/push-to-registry/blob/5ed88d269cf581ea9ef6dd6806d01562096bee9c/README.md#pushing-manifest

## Pushing Manifest

If multiple tags are provided, either all tags must point to manifests, or none of them. i.e., you cannot push both manifests are regular images in one `push-to-registry` step.

Refer to [Manifest Build and Push example](./.github/workflows/manifest-build-push.yaml) for a sophisticated example of building and pushing a manifest.

@kachick
Copy link
Owner Author

kachick commented Mar 17, 2024

Copy link
Contributor

⬢🦭 Staging container-image has been deployed 🚀
You can test the interactive shell 🐚 as follows.

bash <(curl -fsSL 'https://raw.githubusercontent.com/kachick/dotfiles/8232d73a387e5f066690291487e6fcddda4955ab/containers/sandbox-with-ghcr.bash') '8232d73a387e5f066690291487e6fcddda4955ab'

The package detail

{
  "created_at": "2024-03-17T18:38:46Z",
  "html_url": "https://github.com/users/kachick/packages/container/home/192053217",
  "id": 192053217,
  "metadata": {
    "container": {
      "tags": [
        "20240317-183419-utc",
        "8232d73a387e5f066690291487e6fcddda4955ab",
        "pr-490-8232d73a387e5f066690291487e6fcddda4955ab"
      ]
    },
    "package_type": "container"
  },
  "name": "sha256:987f4a07c19e83fa18748c5b758e5ae67781769c75a85b2beea554d65ddc76c3",
  "package_html_url": "https://github.com/users/kachick/packages/container/package/home",
  "updated_at": "2024-03-17T18:38:46Z",
  "url": "https://api.github.com/users/kachick/packages/container/home/versions/192053217"
}

This image will be automatically 🤖 removed from ghcr.io 🗑️ if you merged/closed this PR 😌

@kachick kachick changed the title Update to latest podman before use in action Improve building and deploying containers Mar 17, 2024
@kachick kachick merged commit 5029268 into main Mar 17, 2024
18 checks passed
@kachick kachick deleted the install-newer-podmans-in-action branch March 17, 2024 18:50
Copy link
Contributor

🤖 removed 🗑️ staging ⬢ from ghcr.io

192053217,191975347,191958650,191952640,191944095,191932658,191929543

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redhat actions or use of them cannot register OCI description in ghcr.io
1 participant