Skip to content

Merge pull request #1 from guusbosman/main #6

Merge pull request #1 from guusbosman/main

Merge pull request #1 from guusbosman/main #6

Workflow file for this run

name: CI
on:
push:
jobs:
build:
name: Build and push Docker image
runs-on: ubuntu-latest
steps:
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Get Docker metadata
uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/uoodsq/moto
- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max