Skip to content

First build

First build #1

Workflow file for this run

name: Build
on:
push:
branches:
- main
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: 'Build Image'
run: |
docker build . --target runtime --tag ghcr.io/bourvill/blog:${{ github.sha }}
docker push ghcr.io/bourvill/blog:${{ github.sha }}