Fixes (imports, formatting, etc) #6
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: 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. |