Skip to content

Update beta.yml

Update beta.yml #16

Workflow file for this run

# Builds leviathan images on master
name: Build beta
on:
push:
branches:
- master
jobs:
build-docker:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
packages: write # to be able to publish docker images
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@makeopensource'
- run: npm ci
working-directory: .spec/client
- run: npm publish
working-directory: .spec/client
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# docker image build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: build leviathan image
run: docker build . -t ghcr.io/${{ github.repository }}:beta
- name: push leviathan
run: docker push ghcr.io/${{ github.repository }}:beta
- name: build hydra image
working-directory: .example/hydra
run: docker build ../../ -f ./Dockerfile -t ghcr.io/makeopensource/hydra:beta
- name: push hydra
run: docker push ghcr.io/makeopensource/hydra:beta
# if the binary needs to built directly
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.22'
# - name: Install dependencies
# run: go mod tidy
#
# - name: Build
# run: go build -ldflags "-w -s" -o multipacman_linux_${{ steps.tagName.outputs.tag }}
#
# - name: Upload Release Asset
# uses: softprops/action-gh-release@v2
# with:
# files: |
# multipacman_linux_${{ steps.tagName.outputs.tag }}
# tag_name: ${{ steps.tagName.outputs.tag }}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}