Skip to content

Commit

Permalink
Merge pull request #43 from tve/master
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst authored Nov 5, 2021
2 parents 696fd7e + 4645220 commit c963a91
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and upload DockerHub image

on: [push]

env:
DOCKERHUB_USER: tvoneicken
DOCKER_IMAGE: pimod

permissions:
id-token: write
contents: write

jobs:
build-all:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
path: .

- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
# login uses access token: https://docs.docker.com/docker-hub/access-tokens/
username: ${{ env.DOCKERHUB_USER}}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.DOCKERHUB_USER }}/${{ env.DOCKER_IMAGE }}
flavor: |
latest=true
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c963a91

Please sign in to comment.