Skip to content

Commit

Permalink
feat: GHCR push support - update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
epociask committed Jul 6, 2024
1 parent 8440263 commit 7750b71
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/docker-eigenda.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
name: Build nitro-eigenda Docker Image
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches: [ "develop" ]
tags: ['*']

jobs:
docker:
runs-on: linux-2xl
runs-on: ubuntu-latest
strategy:
matrix:
include:
Expand All @@ -24,20 +19,14 @@ jobs:
uses: actions/checkout@v4
with:
submodules: 'recursive'
ssh-key: ${{ secrets.SSH_KEY }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Prepare Environment Variables
run: |
echo "SHORT_SHA=${GITHUB_SHA::7}" | tee -a $GITHUB_ENV
GIT_TAG=$(git tag --points-at HEAD)
echo "GIT_TAG=$GIT_TAG" | tee -a $GITHUB_ENV
echo "REF_NAME=$(echo ${GIT_TAG:-$GITHUB_REF_NAME} | sed 's/[^a-zA-Z0-9._]/-/g')" | tee -a $GITHUB_ENV
with:
install: true

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
Expand Down

0 comments on commit 7750b71

Please sign in to comment.