Skip to content

Update docker/login-action action to v3 #23

Update docker/login-action action to v3

Update docker/login-action action to v3 #23

Workflow file for this run

name: Publish Docker image
on:
push:
branches:
- main
workflow_call:
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- name: Log in to GitHub Docker Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build container image
uses: docker/build-push-action@v5
with:
push: true
tags: |
ghcr.io/strayer/acme.sh:latest