Skip to content

Add method descriptions for string.morse-code #45

Add method descriptions for string.morse-code

Add method descriptions for string.morse-code #45

Workflow file for this run

name: Build and Push Docker image to GHCR
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# Step 2: Log in to GitHub Container Registry (GHCR)
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Step 3: Build the Docker image
- name: Build Docker image
run: |
IMAGE_NAME=ghcr.io/${{ github.repository }}:latest
docker build -t $IMAGE_NAME .
# Step 4: Push the Docker image to GitHub Container Registry
- name: Push Docker image to GHCR
run: |
IMAGE_NAME=ghcr.io/${{ github.repository }}:latest
docker push $IMAGE_NAME