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

Tweak/ftl build #79

Merged
merged 2 commits into from
Sep 27, 2023
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
10 changes: 9 additions & 1 deletion .github/actions/login-repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ inputs:
runs:
using: "composite"
steps:
- name: Check inputs
shell: bash
run: |
[[ "${{ inputs.docker_username }}" ]] || { echo "docker_username input is empty" ; exit 1; }
[[ "${{ inputs.docker_password }}" ]] || { echo "docker_password input is empty" ; exit 1; }
[[ "${{ inputs.ghcr_username }}" ]] || { echo "ghcr_username input is empty" ; exit 1; }
[[ "${{ inputs.ghcr_password }}" ]] || { echo "ghcr_password input is empty" ; exit 1; }

-
name: Login to Docker Hub
uses: docker/login-action@v2
Expand All @@ -32,4 +40,4 @@ runs:
with:
registry: ghcr.io
username: ${{ inputs.ghcr_username }}
password: ${{ inputs.ghcr_password }}
password: ${{ inputs.ghcr_password }}
9 changes: 8 additions & 1 deletion .github/actions/merge-and-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ inputs:
runs:
using: "composite"
steps:
- name: Check inputs
shell: bash
run: |
[[ "${{ inputs.imagename }}" ]] || { echo "imagename input is empty" ; exit 1; }
[[ "${{ inputs.platform }}" ]] || { echo "platform input is empty" ; exit 1; }
[[ "${{ inputs.registry }}" ]] || { echo "registry input is empty" ; exit 1; }

-
name: Docker meta
id: meta_docker
Expand Down Expand Up @@ -47,4 +54,4 @@ runs:
name: Inspect image
shell: bash
run: |
docker buildx imagetools inspect ${{ inputs.imagename }}:${{ steps.meta_docker.outputs.version }}
docker buildx imagetools inspect ${{ inputs.imagename }}:${{ steps.meta_docker.outputs.version }}
1 change: 1 addition & 0 deletions .github/workflows/ftl-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
paths:
- 'ftl-build/**'
- '.github/workflows/ftl-build.yml'
- '.github/actions/**'
workflow_dispatch:
schedule:
# 1:30am UTC every Sunday, has no particular significance
Expand Down
Loading