Skip to content

.github/workflows/ghcr.yml #4

.github/workflows/ghcr.yml

.github/workflows/ghcr.yml #4

Workflow file for this run

on:
workflow_run:
workflows: ["release"]
types:
- completed
permissions:
packages: write
jobs:
docker-compose_build:
runs-on: ubuntu-latest
steps:
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Checkout
uses: actions/checkout@v3
with:
path: main
- name: get-npm-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build images with release version ${{ inputs.version }}
run: cd main && docker buildx build --platform linux/amd64,linux/arm64 -t "ghcr.io/${{ github.actor }}/nutstash-wallet:${{ steps.package-version.outputs.current-version}}" --push .