Go to https://github.com/docker/getting-started-app
Fork it
In the terminal, run:
git remote set-url origin https://github.com/abohmeed/getting-started-app.gitxxxxxxxxxxcat DockerfileAdd the new file in VS Code:
xxxxxxxxxx# .github/workflows/docker-image.ymlnameDocker Image CIon push branchesmain pull_request branchesmainjobs build runs-onubuntu-latest stepsnameCheckout code usesactions/checkout@v3
nameSet up Docker Buildx usesdocker/setup-buildx-action@v3
nameLog in to GitHub Container Registry usesdocker/login-action@v3 with registryghcr.io username$ github.repository_owner password$ secrets.GITHUB_TOKEN
nameBuild and push Docker image usesdocker/build-push-action@v5 with context. pushtrue tags ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:latest ghcr.io/${{ github.repository_owner }}/abohmeed/getting-started:${{ github.sha }}