You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this project in a home-automation setup but my stack is docker based, so I'd like to request the container images to be automatically built and published to either GHCR or another registry.
Since gh actions are already setup, it should not be complicated to add docker builds, something like this should work:
# This workflow uses actions that are not certified by GitHub.# They are provided by a third-party and are governed by# separate terms of service, privacy policy, and support# documentation.# GitHub recommends pinning actions to a commit SHA.# To get a newer version, you will need to update the SHA.# You can also reference a tag or branch, but the action may change without warning.name: Create and publish a Docker imageon:
release:
types: [published]env:
REGISTRY: ghcr.ioIMAGE_NAME: ${{ github.repository }}jobs:
build-and-push-image:
runs-on: ubuntu-latestpermissions:
contents: readpackages: writesteps:
- name: Checkout repositoryuses: actions/checkout@v3
- name: Log in to the Container registryuses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9with:
registry: ${{ env.REGISTRY }}username: ${{ github.actor }}password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Dockerid: metauses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker imageuses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dcwith:
context: .push: truetags: ${{ steps.meta.outputs.tags }}labels: ${{ steps.meta.outputs.labels }}
EDIT: It would be good to publish amd64 and arm64.
The text was updated successfully, but these errors were encountered:
Hi! 👋
I'm trying to use this project in a home-automation setup but my stack is docker based, so I'd like to request the container images to be automatically built and published to either GHCR or another registry.
Since gh actions are already setup, it should not be complicated to add docker builds, something like this should work:
EDIT: It would be good to publish amd64 and arm64.
The text was updated successfully, but these errors were encountered: