Skip to content

Commit

Permalink
Change the docker/login-action version to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cihanandac committed Jan 26, 2024
1 parent a6df319 commit 708219d
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ env:
PYTHON_VERSION: "3.11"

jobs:

meta:
runs-on: ubuntu-latest
outputs:
Expand All @@ -36,8 +35,8 @@ jobs:
- name: Run check
uses: plone/code-analysis-action@v2
with:
base_dir: 'backend'
check: 'black'
base_dir: "backend"
check: "black"

flake8:
runs-on: ubuntu-latest
Expand All @@ -48,8 +47,8 @@ jobs:
- name: Run check
uses: plone/code-analysis-action@v2
with:
base_dir: 'backend'
check: 'flake8'
base_dir: "backend"
check: "flake8"

isort:
runs-on: ubuntu-latest
Expand All @@ -60,8 +59,8 @@ jobs:
- name: Run check
uses: plone/code-analysis-action@v2
with:
base_dir: 'backend'
check: 'isort'
base_dir: "backend"
check: "isort"

zpretty:
runs-on: ubuntu-latest
Expand All @@ -72,8 +71,8 @@ jobs:
- name: Run check
uses: plone/code-analysis-action@v2
with:
base_dir: 'backend'
check: 'zpretty'
base_dir: "backend"
check: "zpretty"

tests:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -115,7 +114,6 @@ jobs:
packages: write

steps:

- name: Checkout
uses: actions/checkout@v4

Expand All @@ -127,8 +125,7 @@ jobs:
${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}
labels: |
org.label-schema.docker.cmd=docker run -d -p 8080:8080 ${{ env.IMAGE_NAME_PREFIX }}-${{ env.IMAGE_NAME_SUFFIX }}:latest
flavor:
latest=false
flavor: latest=false
tags: |
type=ref,event=branch
type=sha
Expand All @@ -141,7 +138,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Login to Container Registry
uses: docker/login-action@v3
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down

0 comments on commit 708219d

Please sign in to comment.