mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-10 10:26:23 +00:00
Use docker hub actions
This commit is contained in:
parent
488d1d6e19
commit
b40945ee1d
1 changed files with 16 additions and 9 deletions
25
.github/workflows/dockerimage.yml
vendored
25
.github/workflows/dockerimage.yml
vendored
|
@ -10,13 +10,20 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Build the Docker image
|
|
||||||
run: docker build . --file Dockerfile --tag neothor/steam-open-id:$(date +%s)
|
- name: Login to docker hub
|
||||||
- name: Push the Docker image
|
if: success()
|
||||||
uses: jerray/publish-docker-action@master
|
uses: actions-hub/docker/login@master
|
||||||
|
env:
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build image
|
||||||
|
if: success()
|
||||||
|
run: docker build -t neothor/steam-open-id:${IMAGE_TAG} .
|
||||||
|
|
||||||
|
- name: Push to docker registry
|
||||||
|
if: success()
|
||||||
|
uses: actions-hub/docker@master
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
args: push neothor/steam-open-id:${IMAGE_TAG}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
registry: docker.pkg.github.com
|
|
||||||
repository: neothor/steam-open-id
|
|
||||||
auto_tag: true
|
|
Loading…
Reference in a new issue