Difference between revisions of "Uses: docker/login-action"

From wikieduonline
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
  [[uses: docker/login-action]]@v3
+
* https://github.com/docker/login-action
 +
  [[uses: docker/]][[login-action]]@v3
 +
 
 +
 
 +
== Official example ==
 +
<pre>
 +
name: ci
 +
 
 +
on:
 +
  push:
 +
    branches: main
 +
 
 +
jobs:
 +
  login:
 +
    runs-on: ubuntu-latest
 +
    steps:
 +
      -
 +
        name: Login to Docker Hub
 +
        uses: docker/login-action@v3
 +
        with:
 +
          username: ${{ vars.DOCKERHUB_USERNAME }}
 +
          password: ${{ secrets.DOCKERHUB_TOKEN }}
 +
</pre>
  
 
== Related ==
 
== Related ==
* [[docker login]]
+
* <code>[[docker login]]</code>
 +
* [[Docker Hub]]
 +
 
 +
== See also ==
 +
* {{uses:}}
  
{{uses:}}
+
[[Category:GitHub Actions]]

Latest revision as of 17:51, 4 November 2024

uses: docker/login-action@v3


Official example[edit]

name: ci

on:
  push:
    branches: main

jobs:
  login:
    runs-on: ubuntu-latest
    steps:
      -
        name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ vars.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

Related[edit]

See also[edit]

Advertising: