Skip to content

build: add riscv- prefix to dockerhub repo #5

build: add riscv- prefix to dockerhub repo

build: add riscv- prefix to dockerhub repo #5

Workflow file for this run

name: build
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Extract Docker metadata
id: meta
uses: docker/[email protected]
with:
images: ${{ secrets.DOCKERHUB_USER }}/acme.sh
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
run: |
REPOS="\
${{ secrets.DOCKERHUB_USER }}/riscv-acme.sh \
ghcr.io/${{ github.repository }} \
" ./build-docker-riscv.sh