Skip to content

Commit

Permalink
Create upload-dockerhub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanTaheriGhaleTaki authored Apr 1, 2024
1 parent b8a9a3b commit dc96eb4
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/upload-dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy

on:
push:
branches:
- main # Set a branch to deploy when pushed

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- 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@v5
with:
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/speed-test-dns:latest

0 comments on commit dc96eb4

Please sign in to comment.