Fix: minor html validity issues. #3
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: Docker build | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: ghcr.io | |
GIT_COMMIT: "f68b188" | |
TAG: 1.1.0 | |
NAME: piqmie | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Log into registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set image name | |
run: | | |
echo "IMG_TAG=${REGISTRY}/${GITHUB_REPOSITORY_OWNER,,}/${NAME}:${TAG}" >> ${GITHUB_ENV} | |
- name: Build Docker image | |
run: | | |
docker build --build-arg GIT_COMMIT=$GIT_COMMIT -t $IMG_TAG . | |
docker images | |
- name: Push Docker image to registry | |
run: docker push $IMG_TAG |