mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
GitHub Actions: split the container build action into two
And remove the Windows/MXE one that doesn't work because of the 6h time limit. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6612297022
commit
311eb9a2e3
3 changed files with 59 additions and 72 deletions
30
.github/workflows/android-dockerimage.yml
vendored
Normal file
30
.github/workflows/android-dockerimage.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- scripts/docker/android-build-container/Dockerfile
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
android-build-container:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
VERSION: 5.13.01
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Get our pre-reqs
|
||||||
|
run: |
|
||||||
|
cd scripts/docker/android-build-container
|
||||||
|
bash download.sh
|
||||||
|
sed -ie 's/^sudo/#sudo/' setup-docker.sh
|
||||||
|
bash setup-docker.sh
|
||||||
|
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build ./scripts/docker/android-build-container/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION}
|
||||||
|
|
||||||
|
- name: Push the Docker image
|
||||||
|
run: |
|
||||||
|
docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION}
|
72
.github/workflows/dockerimages.yml
vendored
72
.github/workflows/dockerimages.yml
vendored
|
@ -1,72 +0,0 @@
|
||||||
name: Docker Image CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- scripts/docker/android-build-container/Dockerfile
|
|
||||||
- scripts/docker/mxe-build-container/Dockerfile
|
|
||||||
- scripts/docker/trusty-qt512/Dockerfile
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
android-build-container:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
VERSION: 5.13.01
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Get our pre-reqs
|
|
||||||
run: |
|
|
||||||
cd scripts/docker/android-build-container
|
|
||||||
bash download.sh
|
|
||||||
sed -ie 's/^sudo/#sudo/' setup-docker.sh
|
|
||||||
bash setup-docker.sh
|
|
||||||
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build ./scripts/docker/android-build-container/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION}
|
|
||||||
|
|
||||||
- name: Push the Docker image
|
|
||||||
run: |
|
|
||||||
docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/android-build-container:${VERSION}
|
|
||||||
|
|
||||||
mxe-build-container:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 720
|
|
||||||
env:
|
|
||||||
VERSION: 0.9
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build ./scripts/docker/mxe-build-container/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/mxe-build-container:${VERSION}
|
|
||||||
|
|
||||||
- name: Push the Docker image
|
|
||||||
run: |
|
|
||||||
docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/mxe-build-container:${VERSION}
|
|
||||||
|
|
||||||
trusty-qt512:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
VERSION: 0.7
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v1
|
|
||||||
|
|
||||||
- name: Get our pre-reqs
|
|
||||||
run: |
|
|
||||||
cd scripts/docker/trusty-qt512
|
|
||||||
bash getpackages.sh
|
|
||||||
|
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build ./scripts/docker/trusty-qt512/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}
|
|
||||||
|
|
||||||
- name: Push the Docker image
|
|
||||||
run: |
|
|
||||||
docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}
|
|
29
.github/workflows/linux-dockerimage.yml
vendored
Normal file
29
.github/workflows/linux-dockerimage.yml
vendored
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
name: Docker Image CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- scripts/docker/trusty-qt512/Dockerfile
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
trusty-qt512:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
VERSION: 0.7
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Get our pre-reqs
|
||||||
|
run: |
|
||||||
|
cd scripts/docker/trusty-qt512
|
||||||
|
bash getpackages.sh
|
||||||
|
|
||||||
|
- name: Build the Docker image
|
||||||
|
run: docker build ./scripts/docker/trusty-qt512/ --tag docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}
|
||||||
|
|
||||||
|
- name: Push the Docker image
|
||||||
|
run: |
|
||||||
|
docker login docker.pkg.github.com -u ${GITHUB_REPOSITORY/\/*/} -p ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
docker push docker.pkg.github.com/${GITHUB_REPOSITORY,,}/trusty-qt512:${VERSION}
|
Loading…
Add table
Reference in a new issue