Build Edge images #1201
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 Edge images | |
on: | |
schedule: | |
- cron: '0 15 * * *' | |
push: | |
paths: | |
- '**/Dockerfile.edge' | |
- '.github/workflows/build-edge-images.yml' | |
jobs: | |
build_edge: | |
name: Build the HEAD Roswell | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to Docker Hub | |
if: github.ref == 'refs/heads/master' | |
uses: docker/login-action@v1 | |
with: | |
username: fukamachi | |
password: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
- name: Build and publish edge image | |
env: | |
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD }} | |
ARCH: linux/amd64,linux/arm64 | |
run: | | |
BUILD_ARGS="" | |
if [ "$GITHUB_REF" = "refs/heads/master" ]; then | |
BUILD_ARGS="--push" | |
fi | |
BUILD_ARGS=$BUILD_ARGS ./build.sh roswell edge debian $build_arg | |
./test.sh roswell edge debian |