Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to use vars for Docker username
Browse files Browse the repository at this point in the history
  • Loading branch information
HumbleBeck committed Jan 11, 2025
1 parent 0c80545 commit a132e6c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_connectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: Publish Connector Images

on:
push:
branches:
- master
branches: master

permissions:
contents: read
Expand Down Expand Up @@ -34,7 +33,7 @@ jobs:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract connector name
Expand All @@ -49,5 +48,5 @@ jobs:
push: true
file: ./Dockerfile
tags: |
${{ secrets.DOCKER_USERNAME }}/${{ steps.connector.outputs.name }}:latest
${{ vars.DOCKER_USERNAME }}/${{ steps.connector.outputs.name }}:latest
${{ secrets.DOCKER_USERNAME }}/${{ steps.connector.outputs.name }}:${{ github.run_number }}

0 comments on commit a132e6c

Please sign in to comment.