Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump docker versions, fix buf #16

Merged
merged 3 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading