Skip to content

Commit

Permalink
Fix publish test image
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
  • Loading branch information
galal-hussein committed Jun 4, 2024
1 parent 7eda2e6 commit f93c44a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
curl -sL https://releases.rancher.com/dapper/latest/dapper-$(uname -s)-$(uname -m) > /usr/local/bin/dapper
chmod +x /usr/local/bin/dapper
- name: Install Dependencies
run: |
apt update
apt install -y build-essential git
- name: Validate Release
run: |
dapper -f Dockerfile --target dapper make validate-release
Expand Down Expand Up @@ -55,15 +60,18 @@ jobs:
# run: |
# dapper -f Dockerfile --target dapper make test

- name: Login to Container Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to Container Registry
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}

- name: Publish Image Runtime
run: |
GITHUB_ACTION_TAG=${{ github.ref_name }} dapper -f Dockerfile --target dapper make publish-image-runtime
GITHUB_ACTION_TAG=${{ github.ref_name }} dapper -f Dockerfile --target dapper make publish-image-runtime
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

- name: Publish Artifacts
uses: softprops/action-gh-release@v2
Expand Down
2 changes: 2 additions & 0 deletions scripts/publish-image-runtime
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ cd $(dirname $0)/..

source ./scripts/version.sh

docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD

docker image push husseingalal/${PROG}-runtime:${DOCKERIZED_VERSION}-${GOOS}-${GOARCH}
if [ "${GOARCH}" != "s390x" ] && [ "${GOARCH}" != "arm64" ]; then
docker image push husseingalal/${PROG}-runtime:${DOCKERIZED_VERSION}-windows-amd64
Expand Down

0 comments on commit f93c44a

Please sign in to comment.