Skip to content

Commit

Permalink
chore: fix ci docker publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidon15 committed May 22, 2023
1 parent b396c40 commit c18420b
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions .github/workflows/docker-publish-edge.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,22 @@
name: Publish (edge)
name: Docker Build & Publish

# Trigger on all push events, new semantic version tags, and all PRs
on:
push:
branches:
- master

env:
REGISTRY: ghcr.io
- "**"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
pull_request:

jobs:
docker:
runs-on: ubuntu-latest
env:
ORGANIZATION: iptestground
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: "${{ env.REGISTRY }}/celestiaorg/sync-service:edge"
file: ./Dockerfile
platforms: linux/arm64,linux/amd64
docker-security-build:
permissions:
contents: write
packages: write
uses: celestiaorg/.github/.github/workflows/[email protected] # yamllint disable-line rule:line-length
with:
dockerfile: Dockerfile

0 comments on commit c18420b

Please sign in to comment.