forked from Job79/devcontainer
refactor: rename fedora to base
This commit is contained in:
@@ -14,10 +14,10 @@ jobs:
|
|||||||
changes:
|
changes:
|
||||||
runs-on: job-v2
|
runs-on: job-v2
|
||||||
outputs:
|
outputs:
|
||||||
fedora: ${{ steps.filter.outputs.fedora == 'true' }}
|
base: ${{ steps.filter.outputs.base == 'true' }}
|
||||||
infra: ${{ steps.filter.outputs.infra == 'true' || steps.filter.outputs.fedora == 'true' }}
|
infra: ${{ steps.filter.outputs.infra == 'true' || steps.filter.outputs.base == 'true' }}
|
||||||
go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.fedora == 'true' }}
|
go: ${{ steps.filter.outputs.go == 'true' || steps.filter.outputs.base == 'true' }}
|
||||||
php: ${{ steps.filter.outputs.php == 'true' || steps.filter.outputs.fedora == 'true' }}
|
php: ${{ steps.filter.outputs.php == 'true' || steps.filter.outputs.base == 'true' }}
|
||||||
any_change: ${{ steps.filter.outputs.workflow == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
|
any_change: ${{ steps.filter.outputs.workflow == 'true' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -26,14 +26,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
filters: |
|
filters: |
|
||||||
workflow: ['.gitea/workflows/build.yaml']
|
workflow: ['.gitea/workflows/build.yaml']
|
||||||
fedora: ['containers/fedora/**']
|
base: ['containers/base/**']
|
||||||
infra: ['containers/infra/**']
|
infra: ['containers/infra/**']
|
||||||
go: ['containers/go/**']
|
go: ['containers/go/**']
|
||||||
php: ['containers/php/**']
|
php: ['containers/php/**']
|
||||||
|
|
||||||
base-image:
|
base-image:
|
||||||
needs: [changes]
|
needs: [changes]
|
||||||
if: ${{ needs.changes.outputs.fedora == 'true' || needs.changes.outputs.any_change == 'true' }}
|
if: ${{ needs.changes.outputs.base == 'true' || needs.changes.outputs.any_change == 'true' }}
|
||||||
runs-on: job-v2
|
runs-on: job-v2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
@@ -47,10 +47,10 @@ jobs:
|
|||||||
id: build
|
id: build
|
||||||
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
|
uses: job79/buildah-build@65b3793a1370c1ccd74a5c0d090d70eb9637a4ef
|
||||||
with:
|
with:
|
||||||
image: job79/fedora
|
image: job79/base
|
||||||
tags: ${{ github.ref_name }}
|
tags: ${{ github.ref_name }}
|
||||||
context: ./containers/fedora
|
context: ./containers/base
|
||||||
containerfiles: ./containers/fedora/Containerfile
|
containerfiles: ./containers/base/Containerfile
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
- name: Push
|
- name: Push
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
ARG TAG
|
ARG TAG
|
||||||
FROM job79/fedora:${TAG}
|
FROM job79/base:${TAG}
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
ARG TAG
|
ARG TAG
|
||||||
FROM job79/fedora:${TAG}
|
FROM job79/base:${TAG}
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
ARG TAG
|
ARG TAG
|
||||||
FROM job79/fedora:${TAG}
|
FROM job79/base:${TAG}
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
|
||||||
|
|||||||
Reference in New Issue
Block a user