Implement device attribute scope with 3 type: SERVER_SCOPE, SHARED_SC… #28
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: Update Viot staging docker images | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "viot/**" | |
- ".github/workflows/viot-staging.yml" | |
- "docker/viot/**" | |
- "docker-compose.yml" | |
jobs: | |
update_staging: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v4 | |
- name: Login to GHCR | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Push Viot API docker image staging to GHCR | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./docker/viot/viot.dockerfile | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/viot-api:staging | |
- name: Push Viot Celery docker image staging to GHCR | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: ./docker/viot/celery.dockerfile | |
push: true | |
tags: ghcr.io/${{ github.repository_owner }}/viot-celery:staging |