Skip to content

Merge branch 'main' of github.com:rbourgeat/statisfaction #6

Merge branch 'main' of github.com:rbourgeat/statisfaction

Merge branch 'main' of github.com:rbourgeat/statisfaction #6

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build Docker image
run: |
docker build -t ghcr.io/${{ github.repository }}:latest .
- name: Push Docker image to GitHub Container Registry
run: |
docker push ghcr.io/${{ github.repository }}:latest