mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
add step to pull in dependencies
This commit is contained in:
parent
fadeb6fffb
commit
af1cf3f363
1 changed files with 14 additions and 0 deletions
14
action.yml
14
action.yml
|
|
@ -130,6 +130,20 @@ runs:
|
||||||
mkdir /cache/dnf_new || true
|
mkdir /cache/dnf_new || true
|
||||||
mkdir /cache/skopeo || true
|
mkdir /cache/skopeo || true
|
||||||
|
|
||||||
|
- name: Determine Flatpak dependencies
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
image="${{ inputs.image_repo }}/${{ inputs.image_name }}:${{ inputs.image_tag }}"
|
||||||
|
FLAPAK_DIR=$(mktemp -d)
|
||||||
|
mkdir ${FLATPAK_DIR}/repo
|
||||||
|
mkdir ${FLATPAK_DIR}/triggers
|
||||||
|
cat << EOF | docker run -it --entrypoint bash -e FLATPAK_USER_DIR=/flatpak_dir/repo -e FLATPAK_TRIGGERSDIR=/flatpak_dir/triggers --volume ${FLATPAK_DIR}:/flatpak_dir ${image}
|
||||||
|
flatpak config --user --set languages "*"
|
||||||
|
flatpak remote-add --user ${{ inputs.flatpak_remote_name }} ${{ inputs.flatpak_remote_url }}
|
||||||
|
flatpak install --user -y ${{ inputs.flatpak_remote_refs }}
|
||||||
|
ostree refs --repo=${FLATPAK_USER_DIR}/repo
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Run docker image
|
- name: Run docker image
|
||||||
env:
|
env:
|
||||||
ACTION_REPO: ${{ github.action_repository }}
|
ACTION_REPO: ${{ github.action_repository }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue