Merge pull request #1 from Retch/http_connector #7
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 omni lock adapter' | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
push-store-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout GitHub Action' | |
uses: actions/checkout@v2 | |
- name: 'Set up QEMU' | |
uses: docker/setup-qemu-action@v1 | |
- name: 'Set up Docker Buildx' | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: 'Login to GitHub Container Registry' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: 'Build and Push Inventory Image' | |
run: | | |
docker buildx create --use | |
docker buildx build --push --tag ghcr.io/retch/shareabike-omni-lock-adapter:latest --platform linux/amd64,linux/arm64 . |