Build plugin image #3
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: Build plugin image | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: build docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: setup docker | |
uses: docker-practice/actions-setup-docker@master | |
- name: build docker image | |
run: | | |
docker build -t ghcr.io/orange-cloudfoundry/headlamp-plugin:latest ./ | |
- name: login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: push docker image | |
run: | | |
docker push ghcr.io/orange-cloudfoundry/headlamp-plugin:latest |