Skip to content

Commit

Permalink
Merge pull request #13 from nearlynocturnalbeach/docker-version-label
Browse files Browse the repository at this point in the history
Add version label to container image
  • Loading branch information
robotichead authored May 17, 2024
2 parents edd356a + f11190e commit 61f1195
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Checkout
name: Checkout
uses: actions/checkout@v2
-
name: Login to Docker Hub
Expand All @@ -34,16 +34,8 @@ jobs:
file: ./Dockerfile
push: true
platforms: linux/arm64,linux/amd64
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/nearbeach:latest
-
name: Build and push versioned - ${{ github.event.client_payload.version }}
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/arm64,linux/amd64
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/nearbeach:${{ github.event.client_payload.version }}
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/nearbeach:latest,${{ secrets.DOCKER_HUB_USERNAME }}/nearbeach:${{ github.event.client_payload.version }}
labels: version=${{ github.event.client_payload.version }}
-
name: Notify Discord
run: |
Expand Down

0 comments on commit 61f1195

Please sign in to comment.