Skip to content

Merge pull request #32 from yesodweb/static-export #5

Merge pull request #32 from yesodweb/static-export

Merge pull request #32 from yesodweb/static-export #5

Workflow file for this run

name: Runtime image
on:
push:
branches: [master]
jobs:
push:
runs-on: ubuntu-latest
if: github.event_name == 'push'
steps:
- uses: actions/checkout@v2
- name: Log into Github registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Build image
run: docker build . --tag image
- name: Push to Docker Hub
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login --username snoyberg --password-stdin
IMAGE_ID=yesodweb/yesodweb.com
docker tag image $IMAGE_ID
docker push $IMAGE_ID
IMAGE_ID=$IMAGE_ID:$GITHUB_SHA
docker tag image $IMAGE_ID
docker push $IMAGE_ID