Skip to content

Commit

Permalink
ci: add publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed May 28, 2024
1 parent 231a89e commit 72efc04
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 132 deletions.
5 changes: 0 additions & 5 deletions .github/FUNDING.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/config-check.yaml

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/docker.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/mainnet-deploy.yaml.disabled

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Publish

on:
workflow_dispatch:

push:
branches: [ main ]
tags: [ "v*" ]

concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Install
run: yarn install --ignore-engines

- name: Build
run: yarn build

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Extract metadata (tags, labels) for Docker
id: docker_metadata
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }},value=nightly
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
labels: |
org.opencontainers.image.vendor=AXONE
- name: Log into GitHub Container Registry
uses: docker/#-action@v1
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_TOKEN }}

- name: Build and publish image(s)
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.docker_metadata.outputs.tags }}
labels: ${{ steps.docker_metadata.outputs.labels }}
27 changes: 0 additions & 27 deletions .github/workflows/testnet-deploy.yaml

This file was deleted.

0 comments on commit 72efc04

Please # to comment.