Merge pull request #53 from joshuar/release-please--branches--main #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2023 Joshua Rich <[email protected]> | ||
# | ||
# This software is released under the MIT License. | ||
# https://opensource.org/licenses/MIT | ||
name: Create and publish a Docker image | ||
on: | ||
push: | ||
branches: ['release'] | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
jobs: | ||
context: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Build | ||
id: build | ||
uses: cloudposse/github-action-docker-build-push@main | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
organization: "${{ github.event.repository.owner.login }}" | ||
repository: "${{ github.event.repository.name }}" | ||
login: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
platforms: linux/amd64 | ||
outputs: | ||
image: ${{ steps.build.outputs.image }} | ||
tag: ${{ steps.build.outputs.tag }} |