Skip to content

Merge pull request #1 from Kf637/dependabot/npm_and_yarn/body-parser-… #42

Merge pull request #1 from Kf637/dependabot/npm_and_yarn/body-parser-…

Merge pull request #1 from Kf637/dependabot/npm_and_yarn/body-parser-… #42

name: Build and Publish Docker Image
on:
push:
branches:
- main
paths:
- Dockerfile
- package.json
- package-lock.json
- lib/**
- '**/*.js'
- '**/*.html'
- '**/*.css'
workflow_dispatch: {}
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# 1. Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3
# 2. Log in to GitHub Container Registry (GHCR)
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_PAT }}
# 3. Build Docker image
- name: Build Docker image
run: |
docker build -t ghcr.io/kf637/steam-account-reputation-check:latest .
# 4. Push Docker image to GHCR
- name: Push Docker image
run: |
docker push ghcr.io/kf637/steam-account-reputation-check:latest