Change base image to public ECR for express (#5) #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Login to registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Build the image | |
run: docker build -t ghcr.io/${{ github.repository }}:${{ github.sha }} . | |
- name: Push the images | |
run: | | |
docker push ghcr.io/${{ github.repository }}:${{ github.sha }} |