Merge pull request #165 from nmfs-opensci/eeholmes-patch-1 #1
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 coastwatch | |
on: | |
workflow_dispatch: null | |
push: | |
branches: test | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: test | |
- name: Login to GitHub Container Registry | |
if: github.repository == 'nmfs-opensci/py-rocket-base' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.GITHUB_TOKEN}} | |
- name: Build the Docker image | |
if: github.repository == 'nmfs-opensci/py-rocket-base' | |
run: | | |
docker build . -f Dockerfile --tag ghcr.io/nmfs-opensci/py-rocket-base/test:latest | |
- name: Publish | |
if: github.repository == 'nmfs-opensci/py-rocket-base' | |
run: | | |
docker push ghcr.io/nmfs-opensci/py-rocket-base/test:latest |