Browse Source

Update docker-image.yml

pull/3382/head
Roger Raventós Calle 2 years ago
committed by GitHub
parent
commit
f9cedff20a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      .github/workflows/docker-image.yml

7
.github/workflows/docker-image.yml

@ -16,11 +16,6 @@ jobs:
- name: Check Out Repository
uses: actions/checkout@v2
- name: Build Project
run: |
npm install
npm run build
- name: Log in to GitHub Container Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
@ -28,7 +23,7 @@ jobs:
run: |
REPO_LOWER=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')
BRANCH_NAME=$(echo ${{ github.ref_name }} | tr '[:upper:]' '[:lower:]') # Get the branch name in lowercase
docker build . -t ghcr.io/$REPO_LOWER/portfolio:$BRANCH_NAME
docker build . --env-file=.env -t ghcr.io/$REPO_LOWER/$REPO_LOWER:$BRANCH_NAME
- name: Push Docker image to GitHub Packages
run: |

Loading…
Cancel
Save