Skip to content

Merge pull request #193 from DeployGate/jmatsu/chore/configure_depend… #31

Merge pull request #193 from DeployGate/jmatsu/chore/configure_depend…

Merge pull request #193 from DeployGate/jmatsu/chore/configure_depend… #31

Workflow file for this run

name: Build and Publish Docker
on:
workflow_dispatch:
inputs:
push:
branches:
- master
env:
REGISTRY: ghcr.io
OWNER_NAME: deploygate
IMAGE_NAME: gradle-plugin-mock-server
jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: docker/setup-buildx-action@v1
- uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.OWNER_NAME }}
password: ${{ github.token }}
- id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.OWNER_NAME }}/${{ env.IMAGE_NAME }}
- uses: docker/[email protected]
with:
context: ./docker/mock-server
target: ghcr
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}