mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-09 18:06:22 +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:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag neothor/steam-open-id:$(date +%s)
|
||||
- name: Push the Docker image
|
||||
uses: jerray/publish-docker-action@master
|
||||
|
||||
- name: Login to docker hub
|
||||
if: success()
|
||||
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:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
registry: docker.pkg.github.com
|
||||
repository: neothor/steam-open-id
|
||||
auto_tag: true
|
||||
args: push neothor/steam-open-id:${IMAGE_TAG}
|
Loading…
Reference in a new issue