Merge pull request #3079 from robertcheramy/fix-rubocop-warnings-PR3047 #286
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
name: Publish Docker | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
if: github.repository_owner == 'ytti' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 | |
- name: Get Release Version | |
id: get_version | |
run: echo "release-version=$(git describe --tags)" >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Publish to Registry | |
uses: elgohr/Publish-Docker-Github-Action@v5 | |
with: | |
name: oxidized/oxidized | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
tags: "latest,${{ steps.get_version.outputs.release-version }}" | |
platforms: linux/amd64,linux/arm64 |