Skip to content

Fixes (imports, formatting, etc) #7

Fixes (imports, formatting, etc)

Fixes (imports, formatting, etc) #7

Workflow file for this run

name: docker creation
# Run on PR requests. And on main itself.
on:
push:
branches:
- main
pull_request:
# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
build:
runs-on: ubuntu-22.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can
# access it
- uses: actions/checkout@v4
- name: Build docker
run: docker compose build
- name: Publish the Docker image
run: |
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} ghcr.io
docker tag docker.io/library/wim ghcr.io/nens/wim:main
docker push ghcr.io/nens/wim:main
if: github.ref == 'refs/heads/main'
# Running this job only for main branch.