Skip to content

Commit 8be2ce7

Browse files
committed
add support for ghcr
1 parent 7307a6b commit 8be2ce7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,20 @@ jobs:
2222
username: ${{ secrets.DOCKER_USERNAME }}
2323
password: ${{ secrets.DOCKER_PASSWORD }}
2424

25+
- name: Log in to GitHub Container Registry
26+
uses: docker/login-action@v2
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
2532
- name: Extract metadata (tags, labels) for Docker
2633
id: meta
2734
uses: docker/metadata-action@v4
2835
with:
29-
images: ${{ secrets.DOCKER_USERNAME }}/secuscan
36+
images: |
37+
${{ secrets.DOCKER_USERNAME }}/secuscan
38+
ghcr.io/${{ github.repository }}
3039
3140
- name: Build and push Docker image
3241
uses: docker/build-push-action@v4
@@ -60,6 +69,9 @@ jobs:
6069

6170
create-release:
6271
runs-on: ubuntu-latest
72+
environment:
73+
name: production
74+
url: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}
6375
permissions:
6476
contents: write
6577
steps:

0 commit comments

Comments
 (0)