separated build_emacs_in_docker.sh #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
prepare-docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and export | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
tags: builder-image:latest | |
outputs: type=docker,dest=/tmp/builder-image.tar | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: builder-image | |
path: /tmp/builder-image.tar | |
build-29: | |
runs-on: ubuntu-latest | |
needs: prepare-docker | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: builder-image | |
path: /tmp/builder-image.tar | |
- name: Load image | |
run: docker load -i /tmp/builder-image.tar | |
- name: Download emacs source | |
run: curl -L https://ftp.gnu.org/gnu/emacs/emacs-29.1.tar.xz | tar xz | |
# - name: Run image | |
# run: docker run --name emacs-builder --rm builder-image:latest |