-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- automatic build the docker image with GitHub actions
- Loading branch information
Showing
2 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
env: | ||
VERSION_TAG: v6.3.11b | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build the Docker image | ||
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_USER }}/openkm-debian-pg:$VERSION_TAG | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v1 | ||
with: | ||
username: ${{ secrets.DOCKER_USER }} | ||
password: ${{ secrets.DOCKER_TOKEN }} | ||
- name: Push the Docker image to the Docker Hub | ||
run: docker push ${{ secrets.DOCKER_USER }}/openkm-debian-pg:$VERSION_TAG | ||
- name: Build the Docker image with tag 'latest' | ||
run: docker tag ${{ secrets.DOCKER_USER }}/openkm-debian-pg:$VERSION_TAG ${{ secrets.DOCKER_USER }}/openkm-debian-pg:latest | ||
- name: Push the Docker image with tag 'latest' to the Docker Hub | ||
run: docker push ${{ secrets.DOCKER_USER }}/openkm-debian-pg:latest |
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