Skip to content

Commit

Permalink
chore: update django-cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 authored Nov 5, 2023
1 parent d65b19c commit c8cca65
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/django-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Login to GitHub Packages
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.repository_owner }} --password-stdin
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Docker Image
run: docker build -t docker.pkg.github.com/${{ github.repository }}/anitrend:${{ github.event.inputs.tag }} .
run: docker build . --tag ghcr.io/${{ github.repository }}/anitrend:${{ github.event.inputs.tag }} .
working-directory: .

- name: Push Docker Image to GitHub Packages
run: docker push docker.pkg.github.com/${{ github.repository }}/anitrend:${{ github.event.inputs.tag }}
run: docker push ghcr.io/${{ github.repository }}/anitrend:${{ github.event.inputs.tag }}

0 comments on commit c8cca65

Please sign in to comment.