Merge pull request #134 from tritonuas/fix/setup-deps-correctly #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker | |
on: | |
push: | |
# only run rebuild docker image for changes to master | |
branches: | |
- master | |
jobs: | |
# Build and Push hub | |
gcs: | |
name: dockerhub build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
token: ${{ secrets.SSH_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Login to DockerHub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.CR_PAT }} | |
- name: Build and Push | |
id: docker_build | |
uses: docker/build-push-action@v2 | |
with: | |
context: ./ | |
file: build/package/Dockerfile | |
push: true | |
tags: | | |
tritonuas/gcs:latest | |
ghcr.io/tritonuas/gcs:latest | |
secrets: | | |
GIT_AUTH_TOKEN=${{ secrets.CR_PAT }} | |
- name: Update repo description | |
uses: peter-evans/dockerhub-description@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
repository: tritonuas/gcs | |
- name: Image digest | |
run: echo ${{ steps.docker_build.outputs.digest }} |