Update docker-image.yml
This commit is contained in:
16
.github/workflows/docker-image.yml
vendored
16
.github/workflows/docker-image.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user