docker workflow; fix for WORKDIR #1
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: Build and push docker container | |
on: | |
push: # TODO: only on "scripts" and "Dockerfile" changes | |
branches: | |
- docker | |
jobs: | |
dockerloginbuildpush: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/checkout@v3 | |
- name: Create image from repository | |
run: docker build -t ghcr.io/${{ github.actor }}/repo_rt_preprocessing . | |
- name: push image to GitHub Container Registry | |
run: docker push ghcr.io/${{ github.actor }}/repo_rt_preprocessing:latest |