Skip to content

Commit

Permalink
Fix Docker image link
Browse files Browse the repository at this point in the history
  • Loading branch information
wolveix committed Nov 17, 2023
1 parent 6e6792d commit 43688fa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Docker
on: push

on:
push:
branches:
- main
- dev

jobs:
push:
Expand All @@ -8,14 +13,14 @@ jobs:
- uses: actions/checkout@v2

- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Build image
run: docker build . --file Dockerfile --tag image

- name: Push image to Github Packages
run: |
IMAGE_ID=docker.pkg.github.com/${{ github.repository }}
IMAGE_ID=ghcr.io/${{ github.repository }}
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You can download pre-compiled binaries for macOS, Linux and Windows from the [re
Alternatively, you can run the binary from within our pre-built Docker image:

```shell
docker run ghcr.io/globalcyberalliance/domain-security-scanner/domain-security-scanner:latest
docker run ghcr.io/globalcyberalliance/domain-security-scanner:latest
```

## Build
Expand Down

0 comments on commit 43688fa

Please sign in to comment.