Skip to content

Merge pull request #192 from DeployGate/jmatsu/feat/support_agp_830 #30

Merge pull request #192 from DeployGate/jmatsu/feat/support_agp_830

Merge pull request #192 from DeployGate/jmatsu/feat/support_agp_830 #30

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 }}