This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Merge pull request #114 from ar-io/litestream #5
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: Litestream | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'litestream/**' | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
checks: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
# Build and push container image to GCR (only on main branch) | |
- name: Log in to the GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push container image to GitHub Container Registry | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
context: litestream | |
tags: | | |
ghcr.io/ar-io/arns-litestream:latest | |
ghcr.io/ar-io/arns-litestream:${{ github.sha }} |