Skip to content

Commit

Permalink
Merge branch 'main' into beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ChocoMeow committed Dec 16, 2024
2 parents 7c56fc9 + 72aafae commit 2648e76
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,25 @@ on:
- '**.md'
pull_request:
branches: [ "**" ]
jobs:

build:
permissions:
packages: write

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/chocomeow/vocard:latest # Ensure lowercase
docker push ghcr.io/chocomeow/vocard:latest # Ensure lowercase

0 comments on commit 2648e76

Please sign in to comment.