Skip to content

Commit

Permalink
action: Login to ghcr, push container
Browse files Browse the repository at this point in the history
  • Loading branch information
kallisti5 committed Sep 15, 2024
1 parent d583560 commit 835c6e1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/haiku/website-gemini:$(git rev-parse --short HEAD)
run: |
docker build . --file Dockerfile --tag ghcr.io/haiku/website-gemini:$(git rev-parse --short HEAD)
docker push ghcr.io/haiku/website-gemini:$(git rev-parse --short HEAD)

0 comments on commit 835c6e1

Please sign in to comment.