Skip to content

action: Login to ghcr, push container #2

action: Login to ghcr, push container

action: Login to ghcr, push container #2

Workflow file for this run

name: Docker Image
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
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)
docker push ghcr.io/haiku/website-gemini:$(git rev-parse --short HEAD)