Update docker-image.yml

This commit is contained in:
Henry
2025-05-08 13:05:17 +01:00
committed by GitHub
parent e5aacfb5dd
commit 7cfaee2511

View File

@@ -11,8 +11,18 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker compose build
- name: Build and push the Docker image
run: |
echo "GITHUB_REPOSITORY=${{ github.repository }}" >> $GITHUB_ENV
docker compose build
docker compose push