Skip to content

Commit

Permalink
chore: Push latest manifest (#1291)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Jan 24, 2023
1 parent 6e8b423 commit 9eef7e5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ jobs:
sudo apt-get update &&
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Install Skopeo
run: |
sudo apt-get update
sudo apt-get -y install skopeo
- name: Install Syft
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin
Expand Down Expand Up @@ -81,3 +86,18 @@ jobs:
ANALYTICS_KEY: ${{ secrets.ANALYTICS_KEY }}
DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}

- name: Tag and Push latest
env:
TAG: ${{ github.ref_name }}
run: |
if [[ $TAG == $(cat version.txt) ]]; then
docker pull flipt/flipt:$TAG
skopeo copy --all docker://flipt/flipt:$TAG docker://flipt/flipt:latest
docker pull markphelps/flipt:$TAG
skopeo copy --all docker://markphelps/flipt:$TAG docker://markphelps/flipt:latest
docker pull ghcr.io/flipt-io/flipt:$TAG
skopeo copy --all docker://ghcr.io/flipt-io/flipt:$TAG docker://ghcr.io/flipt-io/flipt:latest
fi

0 comments on commit 9eef7e5

Please sign in to comment.