Change log path of rindex #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
paths-ignore: | |
- 'README.md' | |
- '.env' | |
- '.gitignore' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
tag: ${{ secrets.CI_REGISTRY }}/geekpie/shanghaitech-mirror-frontend:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ secrets.CI_REGISTRY }} | |
username: ${{ secrets.CI_REGISTRY_USER }} | |
password: ${{ secrets.CI_REGISTRY_PASSWORD }} | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag $tag | |
- name: Push the Docker image | |
run: docker push $tag |