Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocoMeow committed Nov 22, 2024
1 parent 92d1a93 commit d1e02c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,21 @@ on:
- '**.md'
pull_request:
branches: [ "**" ]
jobs:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag vocard:latest

- name: Log in to GitHub Docker Registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Push the Docker image
run: docker tag vocard:latest ghcr.io/${{ github.repository }}/vocard:latest
- run: docker push ghcr.io/${{ github.repository }}/vocard:latest

0 comments on commit d1e02c5

Please sign in to comment.