Skip to content

Commit

Permalink
adding github action to build and publish docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes Shaddix committed Nov 21, 2024
1 parent d893ff4 commit 7baf1b2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: ci

on:
push:
tags:
- '*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
- uses: docker/login-action@v3
- with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
- uses: docker/build-push-action@v6
- with:
push: true
tags: wshaddix/http-nats-proxy:${{github.ref_name}}

0 comments on commit 7baf1b2

Please sign in to comment.