Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ttgzs authored Jun 14, 2024
1 parent a0f6c6f commit 9e10f77
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Docker Image CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ${{ secrets.TJJS_HARBOR_HOST }}
IMAGE_NAME: ${{ github.repository }}

jobs:

build:

runs-on: ubuntu-latest
steps:
- uses: docker/login@v3.2.2
- name: login docker hub
with:
registry: ${{secrets.TJJS_HARBOR_HOST}}
Username: ${{secrets.TJJS_HARBOR_USERNAME}}
password: ${{secrets.TJJS_HARBOR_PWD}}
logout: false

0 comments on commit 9e10f77

Please sign in to comment.