Skip to content

Commit

Permalink
add push to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
mobileskyfi authored Oct 2, 2024
1 parent b7affab commit e5658be
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build-on-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,33 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build image and push image to ghcr.io
name: Build image and push image to ghcr.io and Docker Hub
uses: docker/build-push-action@v4
with:
context: .
push: true
sbom: false
provenance: false
platforms: ${{ env.PLATFORM }}
tags: ${{ steps.meta.outputs.tags }}
tags: |
ghcr.io/${{ github.repository }}:latest
ammo74/serial2http:latest
build-args: |
GHCR_REPO=${{ github.repository }}
GHCR_TAG=${{ steps.meta.outputs.tags }}
GHCR_PLATFORM=${{ env.PLATFORM }}
GHCR_PLATFORMS=${{ env.PLATFORMS }}
-
name: Add README to Docker Hub
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: ammo74/serial2http
short-description: "RouterOS container that proxies serial port via HTTP and TCP"

0 comments on commit e5658be

Please sign in to comment.