Skip to content

Commit

Permalink
feat: push images to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlihanbo committed Jun 5, 2024
1 parent 79c6330 commit 0a20143
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/dockerhub-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and push latest images to DockerHub

on:
push:
branches: ["main", "ci-test""]

permissions:
packages: write

jobs:
publish-images-to-dockerhub:
name: publish to DockerHub
if: ${{ github.repository == 'kubewharf/kubeadmiral' }}
runs-on: [ubuntu-latest]
steps:
- name: checkout code
uses: actions/checkout@v3

- name: login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER_NAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: build and publish images
env:
REGISTRY: kubewharf
TAG: latest
run: make images

0 comments on commit 0a20143

Please sign in to comment.