Skip to content

Commit

Permalink
Add github ci actions to build binaries and docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
whites11 committed Jul 5, 2024
1 parent 3198f43 commit 5b683a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,5 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/podcast-sync-server-${{ matrix.os }}-${{ matrix.arch }}
asset_name: /podcast-sync-server-${{ matrix.os }}-${{ matrix.arch }}
tag: ${{ github.ref }}
overwrite: true
body: "Release ${{ github.ref }}"
body: "Release ${{ env.GITHUB_REF }}"
16 changes: 1 addition & 15 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,10 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF }}

- name: Build and push Docker image
id: push
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
tags: ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ env.GITHUB_REF }}

0 comments on commit 5b683a7

Please sign in to comment.