Update wim.py #28
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-web 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. |