fix: push to ghcr.io #28
Workflow file for this run
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: [ develop ] | |
pull_request: | |
branches: [ none ] | |
# this is to manually trigger the worklow | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Reason' | |
default: 'Manual launch' | |
jobs: | |
build: | |
# this step use only simple scripts commands | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: docker login | |
run: | | |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build the Docker image | |
# docker build [directory] --file [file] --tag [tag] | |
run: docker build build --file build/Dockerfile --tag ${{ secrets.DOCKER_USER }}/jeedom:test | |
- name: Docker Push | |
run: docker push ${{ secrets.DOCKER_USER }}/jeedom:test |