Update Dockerfile #12
This file contains 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: Build And Upload Docker Image | |
on: [push] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Login to GitHub Container Registry | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- id: string | |
uses: ASzc/change-string-case-action@v2 | |
with: | |
string: ${{ github.repository }} | |
- name: Build the ${{ github.repository }} Docker image | |
run: | | |
docker build . --tag ghcr.io/${{ steps.string.outputs.lowercase }}:latest | |
docker push ghcr.io/${{ steps.string.outputs.lowercase }}:latest |