Skip to content

Commit

Permalink
update deploy token for gitlab
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Jun 18, 2024
1 parent 2122bb2 commit 0a5fbdc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ vars.GITLAB_CONTAINER_REGISTRY }}
username: gitlab+deploy-token-2
username: gitlab+deploy-token-3
password: ${{ secrets.MAAP_API_NASA_CI_GH_ACTION_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
Expand All @@ -274,16 +274,12 @@ jobs:
type=pep440,pattern={{version}},value=${{ env.THE_VERSION }}
type=raw,value=${{ needs.build.outputs.deploy_env }}
- name: Build and push Docker image
if: |
github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/main' ||
startsWith(github.ref, 'refs/heads/release') ||
github.event_name == 'workflow_dispatch'
uses: docker/build-push-action@v5
with:
context: .
file: docker/Dockerfile
push: true
# Always build but only push if triggered by protected branch or manual run
push: ${{ github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release') || github.event_name == 'workflow_dispatch' }}
pull: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 0a5fbdc

Please sign in to comment.