This commit is contained in:
sudo-nautilus 2021-04-17 14:46:38 +05:30
commit fb91784d98
2 changed files with 14 additions and 6 deletions

View file

@ -75,6 +75,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Install buildx
uses: docker/setup-buildx-action@v1
- name: Generate Dockerfile - name: Generate Dockerfile
run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }} run: ./generate.sh ${{ matrix.target }} ${{ matrix.variant }}
- name: Login to Docker - name: Login to Docker
@ -86,12 +88,18 @@ jobs:
- name: Image Name - name: Image Name
id: imagename id: imagename
run: | run: |
IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}:latest" IMG="ghcr.io/${GITHUB_REPOSITORY,,}/${{ matrix.target }}-${{ matrix.variant }}"
echo "::set-output name=name::${IMG/ /-}" echo "::set-output name=name::${IMG/ /-}:latest"
echo "::set-output name=cache_name::${IMG/ /-}:cache"
- name: Build variant image - name: Build variant image
run: docker build --pull --build-arg BUILDKIT_INLINE_CACHE=1 --cache-from ${{ steps.imagename.outputs.name }} --tag ${{ steps.imagename.outputs.name }} . run: |
- name: Push variant image docker buildx build \
run: docker push ${{ steps.imagename.outputs.name }} --pull \
--tag ${{ steps.imagename.outputs.name }} \
--cache-to=type=registry,mode=max,ref=${{ steps.imagename.outputs.cache_name }} \
--cache-from=type=registry,ref=${{ steps.imagename.outputs.cache_name }} \
--output=type=image,push=true,name=${{ steps.imagename.outputs.name }} \
.
build_ffmpeg: build_ffmpeg:
name: Build ffmpeg name: Build ffmpeg
needs: build_targets needs: build_targets

View file

@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN \ RUN \
apt-get -y update && \ apt-get -y update && \
apt-get -y dist-upgrade && \ apt-get -y dist-upgrade && \
apt-get -y install build-essential yasm nasm pkgconf git curl wget cmake unzip subversion autoconf automake libtool autopoint cmake clang texinfo texi2html gperf gettext itstool ragel libc6-dev libssl-dev gtk-doc-tools gobject-introspection gawk meson ninja-build p7zip-full python3-distutils python3-apt python-is-python3 && \ apt-get -y install build-essential yasm nasm xxd pkgconf git curl wget cmake unzip subversion autoconf automake libtool autopoint cmake clang texinfo texi2html gperf gettext itstool ragel libc6-dev libssl-dev gtk-doc-tools gobject-introspection gawk meson ninja-build p7zip-full python3-distutils python3-apt python-is-python3 && \
apt-get -y clean apt-get -y clean
RUN git config --global user.email "builder@localhost" && \ RUN git config --global user.email "builder@localhost" && \