Update docker-image.yml #4
This file contains hidden or 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: Build and Publish image to Docker Hub | ||
on: | ||
push: | ||
tags: | ||
- *.RELEASE | ||
jobs: | ||
publish_images: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: build image | ||
run: docker build . --file Dockerfile --tag cmometadb/smile-server:${{ github.ref_name }} | ||
- name: push image | ||
run: | | ||
docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | ||
docker push cmometadb/smile-server:${{ github.ref_name }} | ||