Skip to content

Commit

Permalink
Update Docker workflow to use latest actions and improve login method
Browse files Browse the repository at this point in the history
  • Loading branch information
MAVRICK-1 committed Feb 4, 2025
1 parent 01ba22a commit 5b710c9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/docker-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v1

- name: Log in to Quay.io
run: echo ${{ secrets.QUAY_IO_TOKEN }} | docker login quay.io -u kubestellar+kubestellar_ui --password-stdin
- name: Log in to quay.io
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
run: echo $QUAY_PASSWORD | docker login quay.io -u $QUAY_USERNAME --password-stdin

- name: Get version (commit hash)
id: version
Expand All @@ -46,4 +49,4 @@ jobs:
if: github.event.pull_request.merged == true
run: |
docker push quay.io/kubestellar/ui:backend-${{ steps.version.outputs.version }}
docker push quay.io/kubestellar/ui:backend
docker push quay.io/kubestellar/ui:backend

0 comments on commit 5b710c9

Please sign in to comment.