1
0
Fork 0
mirror of synced 2024-06-29 03:20:34 +12:00

Adding login action.

This commit is contained in:
mike12345567 2022-07-07 16:38:48 +01:00
parent 555226ece1
commit 7fe7dcf8a6

View file

@ -10,8 +10,6 @@ env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref}} BASE_BRANCH: ${{ github.event.pull_request.base.ref}}
BRANCH: ${{ github.event.pull_request.head.ref }} BRANCH: ${{ github.event.pull_request.head.ref }}
CI: true CI: true
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }} PERSONAL_ACCESS_TOKEN : ${{ secrets.PERSONAL_ACCESS_TOKEN }}
REGISTRY_URL: registry.hub.docker.com REGISTRY_URL: registry.hub.docker.com
jobs: jobs:
@ -44,8 +42,10 @@ jobs:
- name: Run Yarn Build - name: Run Yarn Build
run: yarn build run: yarn build
- name: Login to Docker Hub - name: Login to Docker Hub
run: | uses: docker/login-action@v2
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_API_KEY }}
- name: Get the latest release version - name: Get the latest release version
id: version id: version
run: | run: |