Compare commits

...

5 commits

Author SHA1 Message Date
Ajay Bura
de2680c764
Merge branch 'dev' into ghcr-registry 2022-08-20 20:54:28 +05:30
Krishan
a6d5bfe967
Merge branch 'dev' into ghcr-registry 2022-08-20 19:00:19 +05:30
Krishan
046f109ed8
add permission to token to write package to ghcr 2022-08-18 10:40:54 +05:30
Krishan
f63caa14a3
Fix secret name 2022-08-18 08:43:10 +05:30
Krishan
a3eeecdf93
Push Docker image to ghcr registry 2022-08-17 16:19:57 +05:30

View file

@ -64,10 +64,11 @@ jobs:
NETLIFY_DEPLOY_TO_PROD: true
push-to-dockerhub:
name: Push Docker image to Docker Hub
name: Push Docker image to Docker Hub, ghcr
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3.0.2
@ -80,11 +81,19 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to the Container registry
uses: docker/login-action@v2.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4.0.1
with:
images: ajbura/cinny
images: |
${{ secrets.DOCKER_USERNAME }}/cinny
ghcr.io/${{ github.repository }}
- name: Build and push Docker image
uses: docker/build-push-action@v3.1.1
with: