Skip to content

Commit

Permalink
docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgao001 committed Jul 22, 2024
1 parent fd1adbd commit 011bede
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- v*

env:
IMAGE_NAME: bsc
IMAGE_NAME: bsc-client
IMAGE_SOURCE: https://github.com/${{ github.repository }}

jobs:
# Push image to GitHub Packages.
Expand All @@ -21,14 +22,14 @@ jobs:
- name: Build image
run: |
docker build . \
--label "org.opencontainers.image.source=${{ secrets.IMAGE_SOURCE }}" \
--label "org.opencontainers.image.source=${IMAGE_SOURCE}" \
--label "org.opencontainers.image.revision=$(git rev-parse HEAD)" \
--label "org.opencontainers.image.version=$(git describe --tags --abbrev=0)" \
--label "org.opencontainers.image.licenses=LGPL-3.0,GPL-3.0" \
-f ./Dockerfile -t "${IMAGE_NAME}"
- name: Log into registry
run: echo "${{ secrets.PACKAGE_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push image
run: |
Expand Down

0 comments on commit 011bede

Please sign in to comment.