Skip to content

docker workflow; fix for WORKDIR #1

docker workflow; fix for WORKDIR

docker workflow; fix for WORKDIR #1

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