-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to GitHub Actions to resume builds
Travis stopped building images on their .org instance on 15 Jun 2021, leaving the last push to Docker Hub on 19 May 2021. That's a few months out of date, now, which causes pulls to have lots of updates to run on startup. In the interest of getting builds going again, and moving away from Travis, here is a switch to GitHub Actions instead. I also replaced the QEMU setup script with a Docker image designed to do the same thing, mostly so the builds would complete.
- Loading branch information
1 parent
c004bc8
commit 3eff657
Showing
9 changed files
with
78 additions
and
60 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build and Deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 0 * * 0' # Run weekly on Sunday at midnight | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- arm32v7 | ||
- arm64v8 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Enable Docker experimental mode for image squashing | ||
if: github.actor != 'nektos/act' | ||
run: | | ||
echo '{ "experimental": true }' | sudo tee /etc/docker/daemon.json | ||
sudo systemctl restart docker | ||
- name: Setup dependencies | ||
run: | | ||
sudo apt-get update && \ | ||
sudo apt-get --yes --no-install-recommends install qemu-user-static | ||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes | ||
chmod -R g-w ./ | ||
- name: Build images | ||
run: ./build | ||
env: | ||
BUILD_ARCH: ${{ matrix.arch }} | ||
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }} | ||
- name: Deploy images | ||
if: github.event_name != 'pull_request' | ||
run: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && ./push | ||
env: | ||
BUILD_ARCH: ${{ matrix.arch }} | ||
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
manifests: | ||
runs-on: ubuntu-latest | ||
if: github.event_name != 'pull_request' | ||
needs: | ||
- build | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup dependencies | ||
run: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" | ||
env: | ||
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Create Manifest | ||
run: ./create-manifest | ||
env: | ||
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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