Skip to content

rockbox-sys: enable reqwest 'blocking' feature #71

rockbox-sys: enable reqwest 'blocking' feature

rockbox-sys: enable reqwest 'blocking' feature #71

Workflow file for this run

name: ci
on:
push:
tags:
- "*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish"
type: "string"
required: true
env:
REGISTRY: ghcr.io
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to Docker
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Write Github Token to file
run: echo $GITHUB_TOKEN > .github_token
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Publish image to Docker Hub
uses: fluentci-io/setup-fluentci@v5
with:
wasm: true
plugin: buildx
args: |
build_cloud --platform linux/amd64,linux/arm64 -t tsiry/rockbox:latest . "--build-arg GITHUB_TOKEN=\"${GITHUB_ACCESS_TOKEN}\" --build-arg TAG=\"${TAG}\"" --push
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILDX_BUILDER: tsiry/rockbox-builder
TAG: ${{ inputs.tag || github.ref_name }}
- name: Log in to Github Container Registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to Github Container Registry
run: |
docker pull tsiry/rockbox:latest
docker tag tsiry/rockbox:latest ghcr.io/tsirysndr/rockbox:latest
docker push ghcr.io/tsirysndr/rockbox:latest