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:
|
||||
push:
|
||||
branches:
|
||||
@@ -9,14 +8,14 @@ jobs:
|
||||
publish-docker-image:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push Docker image to the GHCR
|
||||
run: |
|
||||
docker build . --tag ghcr.io/gbdev/rgbds:master
|
||||
docker push ghcr.io/gbdev/rgbds:master
|
||||
- uses: actions/checkout@v4
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Build and push Docker image to the GHCR
|
||||
run: |
|
||||
docker build . --tag ghcr.io/gbdev/rgbds:master
|
||||
docker push ghcr.io/gbdev/rgbds:master
|
||||
|
||||
Reference in New Issue
Block a user