Skip to content

Commit

Permalink
deployment: remove rpm / deb packages (#53)
Browse files Browse the repository at this point in the history
Signed-off-by: Bobby DeSimone <[email protected]>
  • Loading branch information
desimone authored Jul 22, 2022
1 parent dfce11c commit d3566a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 53 deletions.
35 changes: 3 additions & 32 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,10 @@ name: Publish

on:
push:
# branches:
# - main
branches:
- main

jobs:
cloudsmith:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build
run: |
docker build --file pomerium-datasource.dockerfile --tag docker.cloudsmith.io/pomerium/datasource/datasource:latest .
- name: Save
run: |
docker save -o pomerium-datasource.docker docker.cloudsmith.io/pomerium/datasource/datasource:latest
- name: Install Cloudsmith CLI
run: |
pip3 install cloudsmith-cli
- name: Publish to cloudsmith
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
run: |
TAGS="sha-${GITHUB_SHA::7}"
TAGS="$TAGS,$( echo "$GITHUB_REF_NAME" | sed -e 's|/|-|g' )"
if [ "$GITHUB_REF_NAME" == "main" ]; then
TAGS="$TAGS,latest"
fi
cloudsmith push docker \
--tags "$TAGS" \
pomerium/datasource \
pomerium-datasource.docker
dockerhub:
runs-on: ubuntu-latest
steps:
Expand All @@ -53,7 +24,7 @@ jobs:
type=ref,event=branch
type=ref,event=pr
type=sha
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=main,enable={{is_default_branch}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/release-tagged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,6 @@ jobs:
echo ::set-output name=tag::${TAG}
echo ::set-output name=version::${TAG#v}
- name: Install Cloudsmith CLI
run: |
pip3 install cloudsmith-cli
- name: Publish to Cloudsmith
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
working-directory: dist/
run: |
VERSION=${{ steps.tagName.outputs.version }}
RPMS="pomerium-datasource-${VERSION}-1.aarch64.rpm pomerium-datasource-${VERSION}-1.x86_64.rpm pomerium-datasource-${VERSION}-1.armhf.rpm"
for pkg in $(echo $RPMS); do
cloudsmith push rpm pomerium/datasource/el/any-version $pkg
done
DEBS="pomerium-datasource_${VERSION}-1_amd64.deb pomerium-datasource_${VERSION}-1_arm64.deb pomerium-datasource_${VERSION}-1_armhf.deb"
for pkg in $(echo $DEBS); do
cloudsmith push deb pomerium/datasource/debian/any-version $pkg
done
- name: Find latest tag
id: latestTag
run: |
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ builds:
- -X github.com/pomerium/datasource/internal/version.Version={{.Version}}
- -X github.com/pomerium/datasource/internal/version.GitCommit={{.ShortCommit}}
- -X github.com/pomerium/datasource/internal/version.BuildMeta={{.Timestamp}}
- -X github.com/pomerium/datasource/internal/version.ProjectName=pomerium-datasource
- -X github.com/pomerium/datasource/internal/version.ProjectName={{.ProjectName}}
- -X github.com/pomerium/datasource/internal/version.ProjectURL=https://wwww.pomerium.com

archives:
Expand Down

0 comments on commit d3566a6

Please sign in to comment.