Skip to content

Commit fdd61f3

Browse files
committed
👷‍♂️ Upgrade the Docker push actions.
1 parent 644a678 commit fdd61f3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ jobs:
5050
- test
5151
- lint
5252
if: github.event_name != 'pull_request'
53+
permissions:
54+
packages: write
5355

5456
steps:
5557
- uses: actions/checkout@v2
@@ -74,14 +76,14 @@ jobs:
7476
echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')
7577
- name: Set up Docker Buildx
7678
uses: docker/setup-buildx-action@v1
77-
- name: Login to Github Container Registry
78-
uses: docker/login-action@v1
79+
- name: Login to GitHub Container Registry
80+
uses: docker/login-action@v3
7981
with:
80-
registry: ghcr.io
81-
username: ${{ github.repository_owner }}
82-
password: ${{ secrets.GHCR_PAT }}
82+
registry: ghcr.io
83+
username: ${{ github.actor }}
84+
password: ${{ secrets.GITHUB_TOKEN }}
8385
- name: Build and push
84-
uses: docker/build-push-action@v2
86+
uses: docker/build-push-action@v4
8587
with:
8688
context: .
8789
file: ./Dockerfile

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy