mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-12-23 00:45:52 -05:00
comment out ci for docker build action and improved docker build action
This commit is contained in:
parent
7ade6bb56f
commit
4c28ea0f96
33
.github/workflows/docker-image.yml
vendored
33
.github/workflows/docker-image.yml
vendored
|
@ -1,18 +1,23 @@
|
|||
name: Docker Build and Push
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
|
||||
env:
|
||||
REGISTRY_NAME: ghcr.io
|
||||
IMAGE_NAME: nostr-rs-relay
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
name: CI
|
||||
uses: ./.github/workflows/ci.yml
|
||||
# ci:
|
||||
# name: CI
|
||||
# uses: ./.github/workflows/ci.yml
|
||||
|
||||
build_and_push:
|
||||
needs: [ci]
|
||||
# needs: [ci]
|
||||
name: Build and Push
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
@ -32,13 +37,29 @@ jobs:
|
|||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
- name: Collecting Metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ env.REGISTRY_NAME }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}
|
||||
|
||||
- name: Building And Pushing Image
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v4
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: ghcr.io/${{ github.repository_owner }}/nostr-rs-relay:latest
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
# - name: Build and push
|
||||
# id: docker_build
|
||||
# uses: docker/build-push-action@v4
|
||||
# with:
|
||||
# context: .
|
||||
# push: true
|
||||
# tags: ghcr.io/${{ github.repository_owner }}/nostr-rs-relay:latest
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
Loading…
Reference in New Issue
Block a user