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:
|
jobs:
|
||||||
docker-publish:
|
docker-publish:
|
||||||
name: Publish to Docker Hub
|
name: Publish to GitHub Container Registry
|
||||||
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
@@ -35,6 +35,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
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
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v3.2.0
|
uses: docker/build-push-action@v3.2.0
|
||||||
with:
|
with:
|
||||||
@@ -42,6 +48,8 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
|
||||||
tags: |
|
tags: |
|
||||||
dchesterton/amcrest2mqtt:latest
|
dclough/amcrest2mqtt:latest
|
||||||
dchesterton/amcrest2mqtt:${{ steps.version.outputs.version }}
|
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 }}"
|
labels: "version=${{ steps.version.outputs.version }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user