Skip to content

Commit

Permalink
on all tags
Browse files Browse the repository at this point in the history
  • Loading branch information
dgershman committed Mar 9, 2024
1 parent b50dff9 commit 27facea
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build and Release
on:
push:
tags:
- v*
- *

jobs:
build:
Expand All @@ -25,10 +25,12 @@ jobs:

- name: Build and push Docker image
run: |
curl -LO https://socketzero-public.s3.us-gov-west-1.amazonaws.com/receiver/v0.0.2/socketzero-receiver-linux-amd64-v0.0.2
curl -LO https://socketzero-public.s3.us-gov-west-1.amazonaws.com/receiver/v$GITHUB_REF_NAME/socketzero-receiver-linux-amd64-v$GITHUB_REF_NAME
mv socketzero-receiver-linux-amd64-v$GITHUB_REF_NAME socketzero-receiver
set +o history && echo ${REGISTRY1_PASSWORD} | docker login registry1.dso.mil --username ${REGISTRY1_USERNAME} --password-stdin || set -o history
docker build -t ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:$GITHUB_REF_NAME .
docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:$GITHUB_REF_NAME
env:
SOCKETZERO_RECEIVER_VERSION: 0.0.2
REGISTRY1_USERNAME: ${{ secrets.REGISTRY1_USERNAME }}
REGISTRY1_PASSWORD: ${{ secrets.REGISTRY1_PASSWORD }}

0 comments on commit 27facea

Please sign in to comment.