Skip to content
Merged
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
21 changes: 18 additions & 3 deletions .github/workflows/push-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ name: Push Image
# machines don't need cross-compilation. Triggered manually only.
#
# Required repository secrets:
# PUSH_SERVICE_ACCOUNT_TOKEN - 1Password service account token
# PUSH_SERVICE_ACCOUNT_TOKEN - 1Password service account with push-secrets vault access
# Required repository variables:
# DOCKERHUB_USERNAME - Docker Hub username
# Required 1Password item:
# op://push-secrets/DOCKERHUB_TOKEN/credential

on:
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate set "debug_enabled"'
type: boolean
required: false
default: false

permissions:
contents: read
Expand All @@ -25,14 +33,21 @@ jobs:
id: version
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT"

- name: Load 1password secret(s)
- name: Load 1Password secrets
uses: 1password/load-secrets-action@v4
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: "${{ secrets.PUSH_SERVICE_ACCOUNT_TOKEN }}"
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.PUSH_SERVICE_ACCOUNT_TOKEN }}
DOCKERHUB_TOKEN: "op://push-secrets/DOCKERHUB_TOKEN/credential"

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
github-token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}

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

Expand Down