Update publish.yml
This commit is contained in:
14
.github/workflows/publish.yml
vendored
14
.github/workflows/publish.yml
vendored
@@ -7,7 +7,7 @@ on:
|
||||
|
||||
jobs:
|
||||
docker-publish:
|
||||
name: Publish to Docker Hub
|
||||
name: Publish to GitHub Container Registry
|
||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
@@ -35,6 +35,12 @@ jobs:
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1.14.1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v3.2.0
|
||||
with:
|
||||
@@ -42,6 +48,8 @@ jobs:
|
||||
push: true
|
||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
||||
tags: |
|
||||
dchesterton/amcrest2mqtt:latest
|
||||
dchesterton/amcrest2mqtt:${{ steps.version.outputs.version }}
|
||||
dclough/amcrest2mqtt:latest
|
||||
dclough/amcrest2mqtt:${{ steps.version.outputs.version }}
|
||||
ghcr.io/danclough/amcrest2mqtt:latest
|
||||
ghcr.io/danclough/amcrest2mqtt:${{ steps.version.outputs.version }}
|
||||
labels: "version=${{ steps.version.outputs.version }}"
|
||||
|
||||
Reference in New Issue
Block a user