Skip to content

Commit

Permalink
feat: add github action to build and push docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
Net-Mist committed Jan 12, 2024
1 parent fc2721c commit 90726c0
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Docker image

on:
push:
tags:
- "*"

jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker cli image
uses: docker/build-push-action@v5
with:
context: .
file: ./cli.Dockerfile
push: true
tags: netmist/give-me-the-odds${{ github.ref_name }}
- name: Build and push Docker server image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: netmist/millennium-falcon${{ github.ref_name }}

0 comments on commit 90726c0

Please sign in to comment.