Skip to content

Refactor Docker workflow for ARM64 image build and deployment; enhanc… #171

Refactor Docker workflow for ARM64 image build and deployment; enhanc…

Refactor Docker workflow for ARM64 image build and deployment; enhanc… #171

Workflow file for this run

name: Docker Image CI
on:
push:
#tags:
#- '*'
# To have GitHub Actions deploy a new version, create a new tag
# git tag -a yyyy.m.d -m yyyy.m.d
# Then push those tags
# git push --tags
# Then a new version will be deployed on the self-hosted runner.
jobs:
rpi4:
runs-on: [self-hosted, "${{ matrix.runner}}" ]
strategy:
matrix:
runner: [rpi4, rpi42]
steps:
- uses: actions/checkout@v3
- name: Docker compose pull
run: docker-compose pull
- name: Docker compose down
run: docker-compose down
- name: Docker compose up
env:
COMPOSE_DOCKER_CLI_BUILD: 1
DOCKER_BUILDKIT: 1
GOVEE_API_KEY: ${{ secrets.GOVEE_API_KEY }}
run: docker-compose up -d --build --remove-orphans