Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
kaynetik committed Oct 7, 2024
1 parent e796a62 commit 6cd1567
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ permissions:
contents: write
packages: write

# env:
# REGISTRY_IMAGE: ghcr.io/${{ github.repository }}/seda-data-proxy

env:
REGISTRY_IMAGE: ghcr.io/${{ github.repository }}/seda-data-proxy
REGISTRY: ghcr.io
IMAGE_NAME: sedaprotocol/seda-data-proxy

jobs:
build-and-push:
Expand All @@ -19,31 +23,36 @@ jobs:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4

- name: 🏷️ Docker meta
- name: 🏷️ Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=edge,branch=main
- name: πŸ› οΈ Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: πŸ” Login to GitHub Container Registry
- name: πŸ” Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: πŸ—οΈ Build and Push Docker Image
- name: πŸ—οΈ Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.REGISTRY_IMAGE }}:${{ github.ref_name }}
${{ env.REGISTRY_IMAGE }}:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

create-release:
name: πŸ“¦ Create GitHub Release
Expand Down

0 comments on commit 6cd1567

Please sign in to comment.