Comments (7)
@divyansh42 @tetchel @lstocchi any comments?
from buildah-build.
Hey @webknjaz, apologies for the delayed response.
I've checked this, buildah doesn't support --cache-from
yet. However, there is an open issue for that.
from buildah-build.
Yeah, I've seen some related issues but I still don't understand if that is something that direct invocations of buildah
maybe support.
from buildah-build.
In particular, I was curious if that layers
option does this.
from buildah-build.
Can I use this GitHub Action and have a newer buildah version, in order to use --cache-to
and --cache-from
?
I've noticed that it has not been updated anymore since Version: 1.23.1
.
from buildah-build.
Can I use this GitHub Action and have a newer buildah version
GitHub Actions Images all use whatever is in the Ubuntu repos. When Lunar Lobster drops in a month, we'll get a newer version of buildah/podman/etc. If you'd like, you can use quay.io/buildah/stable:latest
. I use something like this:
runs-on: ubuntu-latest
container:
image: quay.io/buildah/stable:latest
options: --privileged
Although it's finicky, it gives you the latest version of buildah and dnf (but not podman?).
from buildah-build.
hhh well you can specify cache-to and cache-from now, but you need a system to make the right calls to the GitHub cache API (which i was trying to do) https://github.com/tonistiigi/go-actions-cache/blob/master/api.md and that system does not exist in buildah-build like it does in Docker's https://docs.docker.com/build/ci/github-actions/cache/#github-cache , so you might as well just use Docker's if you want caching
A near attempt:
name:
on:
push:
branches:
- main
workflow_dispatch:
jobs:
push-store-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: '.'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Buildah Build
uses: redhat-actions/buildah-build@v2
with:
containerfiles: |
./Containerfile
image: yay
layers: true
build-args: |
cache-to=NEED SPECIFIC CACHE URL WITH KEY
cache-from=NEED SPECIFIC CACHE URL WITH KEY
- name: Push To ghcr
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: ghcr.io/${{ github.repository_owner }}
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
extra-args: |
--disable-content-trust
from buildah-build.
Related Issues (20)
- [QUESTION]I'm having difficulty building a multi-arch image because the TARGETPLATFORM variable is not available in older buildah versions.
- [BUG] On ubuntu-latest failed to decode keys warning HOT 1
- [BUG] Check if multiarch manifest already exists, overwrite if so
- [FEATURE] support buildah manifest add
- [BUG]
- [FEATURE] Support `--jobs N` flag on buildah bud HOT 1
- [BUG] invalid mount type "cache" HOT 3
- [FEATURE] Provide image digest HOT 1
- [BUG] Buildah-build fails when previously ran as root HOT 1
- install_latest_buildah.sh no longer valid
- [FEATURE] Matrix Strategy Multi-Arch example HOT 4
- [FEATURE] buildah in container
- [BUG] Buildah not running as root on self hosted runners HOT 3
- [FEATURE] Annotation support HOT 2
- [BUG] In multi-stage builds, incorrect `latest` tag pushed HOT 3
- [BUG] Normalize Tag Name with Lowercasing HOT 1
- [FEATURE] Use podman as fallback for Containerfile/Dockerfile builds when buildah is unavailable HOT 1
- [FEATURE] Upgrade to NODE 20 HOT 2
- Push and login using podman action vs from buildah action?
- [QUESTION] Is `containerfiles` attribute supposed to be paths in relative to the path declared in `context` attribute? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildah-build.