fix typo #35
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: | |
workflow_dispatch: null | |
push: | |
paths: ['images/*'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to GitHub Container Registry | |
if: github.repository == 'boettiger-lab/k8s' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Build the Docker image | |
if: github.repository == 'boettiger-lab/k8s' | |
run: docker build images/ --tag ghcr.io/boettiger-lab/k8s:latest | |
- name: Publish | |
if: github.repository == 'boettiger-lab/k8s' | |
run: docker push ghcr.io/boettiger-lab/k8s:latest | |