mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Use latest docker/login-action
This commit is contained in:
25
.github/workflows/build-container.yml
vendored
25
.github/workflows/build-container.yml
vendored
@@ -1,5 +1,4 @@
|
|||||||
name: Build Container image and publish it to GitHub Container Registry
|
name: Publish Docker image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -9,14 +8,14 @@ jobs:
|
|||||||
publish-docker-image:
|
publish-docker-image:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build and push Docker image to the GHCR
|
- name: Build and push Docker image to the GHCR
|
||||||
run: |
|
run: |
|
||||||
docker build . --tag ghcr.io/gbdev/rgbds:master
|
docker build . --tag ghcr.io/gbdev/rgbds:master
|
||||||
docker push ghcr.io/gbdev/rgbds:master
|
docker push ghcr.io/gbdev/rgbds:master
|
||||||
|
|||||||
Reference in New Issue
Block a user