Skip to content

Commit

Permalink
Merge pull request #16 from mobilecoinofficial/bump-docker-actions
Browse files Browse the repository at this point in the history
bump docker versions, fix buf
  • Loading branch information
jgreat authored Feb 15, 2024
2 parents 49c848e + 8cabf2c commit 1481fbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docker/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,24 +51,24 @@ runs:
steps:
- name: Generate Docker Tags
id: docker_meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
flavor: ${{ inputs.flavor }}
images: ${{ inputs.images }}
tags: ${{ inputs.tags }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
if: inputs.username && inputs.password
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ inputs.username }}
password: ${{ inputs.password }}

- name: Publish to DockerHub
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
build-args: ${{ inputs.build_args }}
context: ${{ inputs.context }}
Expand Down
12 changes: 6 additions & 6 deletions publish-buf/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Publish to Buf
description: Wrapper for publishing protos to buf.build

inputs:
github_token:
description: Github token passed into setup to prevent api rate limiting
required: true
buf_token:
description: buf.build api token
required: true
path:
description: path to protos
required: true

runs:
using: composite
Expand All @@ -16,14 +16,14 @@ runs:
uses: mobilecoinofficial/gh-actions/checkout@v0

- name: Buf Setup
uses: bufbuild/buf-setup-action@v1.21.0
uses: bufbuild/buf-setup-action@v1
with:
github_token: ${{ inputs.github_token }}
github_token: ${{ github.token }}

- name: Publish Protobufs to Buf
uses: bufbuild/buf-push-action@v1
with:
# TODO: Reuse GH tag on buf when buf-push-action supports specifying
# it: https://github.com/bufbuild/buf-push-action/issues/20
input: api/proto
input: ${{ inputs.path }}
buf_token: ${{ inputs.buf_token }}

0 comments on commit 1481fbe

Please sign in to comment.