fix dates #20
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 Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build the Docker image | |
run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/website:latest | |
- name: Docker login to ghcr.io | |
run: docker login ghcr.io -u ${{ github.repository_owner }} -p ${{ secrets.TOKEN }} | |
- name: 'Push docker image' | |
run: docker push ghcr.io/${{ github.repository_owner }}/website:latest | |
# - name: Login to GitHub Container Registry | |
# uses: docker/login-action@v3 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.repository_owner }} | |
# password: ${{ secrets.TOKEN }} | |
# - name: 'Build docker image' | |
# run: docker build . --file Dockerfile --tag ghcr.io/${{ github.repository_owner }}/website:latest | |
# - name: 'Push docker image' | |
# run: docker push ghcr.io/${{ github.repository_owner }}/website:latest |