mirror of
https://github.com/redhat-actions/buildah-build.git
synced 2025-04-20 09:01:23 +00:00
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
3196e5acb5
commit
8fe53efc79
3 changed files with 33 additions and 7 deletions
14
.github/workflows/dockerfile_build.yml
vendored
14
.github/workflows/dockerfile_build.yml
vendored
|
@ -2,7 +2,13 @@
|
||||||
# is some change in code done to ensure that the changes
|
# is some change in code done to ensure that the changes
|
||||||
# are not buggy and we are getting the desired output.
|
# are not buggy and we are getting the desired output.
|
||||||
name: Build from dockerfile
|
name: Build from dockerfile
|
||||||
on: [push, pull_request, workflow_dispatch]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # every day at midnight
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: "hello-world"
|
IMAGE_NAME: "hello-world"
|
||||||
|
|
||||||
|
@ -25,6 +31,12 @@ jobs:
|
||||||
RUN echo "hello world"
|
RUN echo "hello world"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# Workaround to fix https://github.com/containers/buildah/issues/3120
|
||||||
|
- run: |
|
||||||
|
sudo apt-get install fuse-overlayfs
|
||||||
|
mkdir -vp ~/.config/containers
|
||||||
|
printf "[storage.options]\nmount_program=\"/usr/bin/fuse-overlayfs\"" > ~/.config/containers/storage.conf
|
||||||
|
|
||||||
# Build image using Buildah action
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
|
|
2
.github/workflows/link_check.yml
vendored
2
.github/workflows/link_check.yml
vendored
|
@ -6,6 +6,8 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
-'**.md'
|
-'**.md'
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # every day at midnight
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
markdown-link-check:
|
markdown-link-check:
|
||||||
|
|
14
.github/workflows/scratch_build.yml
vendored
14
.github/workflows/scratch_build.yml
vendored
|
@ -2,7 +2,13 @@
|
||||||
# is some change in code done to ensure that the changes
|
# is some change in code done to ensure that the changes
|
||||||
# are not buggy and we are getting the desired output.
|
# are not buggy and we are getting the desired output.
|
||||||
name: Build
|
name: Build
|
||||||
on: [push, pull_request, workflow_dispatch]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # every day at midnight
|
||||||
|
|
||||||
env:
|
env:
|
||||||
PROJECT_DIR: spring-petclinic
|
PROJECT_DIR: spring-petclinic
|
||||||
IMAGE_NAME: spring-petclinic
|
IMAGE_NAME: spring-petclinic
|
||||||
|
@ -62,6 +68,12 @@ jobs:
|
||||||
path: ${{ env.MVN_REPO_DIR }}
|
path: ${{ env.MVN_REPO_DIR }}
|
||||||
key: ${{ env.MVN_HASH }}
|
key: ${{ env.MVN_HASH }}
|
||||||
|
|
||||||
|
# Workaround to fix https://github.com/containers/buildah/issues/3120
|
||||||
|
- run: |
|
||||||
|
sudo apt-get install fuse-overlayfs
|
||||||
|
mkdir -vp ~/.config/containers
|
||||||
|
printf "[storage.options]\nmount_program=\"/usr/bin/fuse-overlayfs\"" > ~/.config/containers/storage.conf
|
||||||
|
|
||||||
# Build image using Buildah action
|
# Build image using Buildah action
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build_image
|
id: build_image
|
||||||
|
|
Loading…
Reference in a new issue