diff --git a/.github/resources/goomy.png b/.github/resources/goomy.png new file mode 100644 index 0000000..5f4d86f Binary files /dev/null and b/.github/resources/goomy.png differ diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 0b9450e..1f8e4ab 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -44,7 +44,7 @@ jobs: id-token: write packages: write with: - # depot-project-id: mhgvgvsjnx + depot-project-id: c3gpflm133 package-name: spamooor target-binary: astria-spamooor tag: ${{ inputs.tag }} diff --git a/.github/workflows/reusable-docker-build.yml b/.github/workflows/reusable-docker-build.yml index 4afbd6c..2be62b6 100644 --- a/.github/workflows/reusable-docker-build.yml +++ b/.github/workflows/reusable-docker-build.yml @@ -3,9 +3,9 @@ name: Reusable Docker Build && Push Workflow on: workflow_call: inputs: - # depot-project-id: - # required: true - # type: string + depot-project-id: + required: true + type: string package-name: required: true type: string @@ -37,7 +37,7 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ inputs.tag }} - # - uses: depot/setup-action@v1 + - uses: depot/setup-action@v1 - name: Login to Docker Hub if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'astriaorg/spamooor' uses: docker/login-action@v2 @@ -50,11 +50,11 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 + # - name: Set up QEMU + # uses: docker/setup-qemu-action@v2 + # - name: Set up Docker Buildx + # id: buildx + # uses: docker/setup-buildx-action@v2 # Generate correct tabs and labels - name: Docker metadata id: metadata @@ -67,8 +67,22 @@ jobs: type=sha # set latest tag for `main` branch type=raw,value=latest,enable=${{ env.FULL_REF == format('refs/heads/{0}', 'main') }} - - name: Build and push - uses: docker/build-push-action@v4 + # - name: Build and push + # uses: docker/build-push-action@v4 + # with: + # # this gets rid of the unknown/unknown image that is created without this setting + # # https://github.com/docker/build-push-action/issues/820#issuecomment-1455687416 + # provenance: false + # context: . + # file: Dockerfile + # build-args: | + # TARGETBINARY=${{ inputs.target-binary }} + # platforms: 'linux/amd64,linux/arm64' + # push: ${{ github.repository_owner == 'astriaorg'}} + # tags: ${{ steps.metadata.outputs.tags }} + # labels: ${{ steps.metadata.outputs.labels }} + - name: Build and push (Depot) + uses: depot/build-push-action@v1 with: # this gets rid of the unknown/unknown image that is created without this setting # https://github.com/docker/build-push-action/issues/820#issuecomment-1455687416 @@ -77,25 +91,8 @@ jobs: file: Dockerfile build-args: | TARGETBINARY=${{ inputs.target-binary }} - platforms: 'linux/amd64,linux/arm64' - push: ${{ github.repository_owner == 'astriaorg'}} + platforms: "linux/amd64,linux/arm64" + push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'astriaorg/spamooor' }} tags: ${{ steps.metadata.outputs.tags }} labels: ${{ steps.metadata.outputs.labels }} - # - name: Build and push (Depot) - # uses: depot/build-push-action@v1 - # with: - # # this gets rid of the unknown/unknown image that is created without this setting - # # https://github.com/docker/build-push-action/issues/820#issuecomment-1455687416 - # provenance: false - # context: . - # file: containerfiles/Dockerfile - # build-args: | - # TARGETBINARY=${{ inputs.target-binary }} - # platforms: "linux/amd64,linux/arm64" - # push: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'astriaorg/spamooor' }} - # tags: ${{ steps.metadata.outputs.tags }} - # labels: ${{ steps.metadata.outputs.labels }} - # project: ${{ inputs.depot-project-id }} - - - \ No newline at end of file + project: ${{ inputs.depot-project-id }} diff --git a/depot.json b/depot.json new file mode 100644 index 0000000..18d8ed2 --- /dev/null +++ b/depot.json @@ -0,0 +1 @@ +{"id":"c3gpflm133"}