mirror of
https://github.com/ovh/the-bastion.git
synced 2025-02-28 01:24:31 +08:00
Merge pull request #11 from ovh/dockerhub
chore: add dockerhub autopush (manual trigger)
This commit is contained in:
commit
cb5e8f7131
1 changed files with 33 additions and 0 deletions
33
.github/workflows/dockerhub.yml
vendored
Normal file
33
.github/workflows/dockerhub.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
name: dockerhub publish
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types: dockerhub
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_LOGIN }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
file: docker/Dockerfile.debian10
|
||||||
|
tags: ovhcom/the-bastion:sandbox-latest
|
||||||
|
-
|
||||||
|
name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
Loading…
Reference in a new issue