Skip to content

📝 git checkout/switching notes #168

📝 git checkout/switching notes

📝 git checkout/switching notes #168

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
defaults:
run:
working-directory: ./website
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/nabeelvalley/website:$(date +%s) --tag ghcr.io/nabeelvalley/website:latest
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Push image to Github Registry
run: docker push ghcr.io/nabeelvalley/website:latest