Skip to content

Merge pull request #201 from DeployGate/dependabot/github_actions/doc… #34

Merge pull request #201 from DeployGate/dependabot/github_actions/doc…

Merge pull request #201 from DeployGate/dependabot/github_actions/doc… #34

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