Skip to content

Merge pull request #208 from erooster-mail/dependabot/github_actions/… #359

Merge pull request #208 from erooster-mail/dependabot/github_actions/…

Merge pull request #208 from erooster-mail/dependabot/github_actions/… #359

Workflow file for this run

name: Docker Image CI
on:
push:
branches: ["main"]
release:
types: [published]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
auth.docker.io:443
gcr.io:443
github.com:443
hub.docker.com:443
production.cloudflare.docker.com:443
registry-1.docker.io:443
storage.googleapis.com:443
crates.io:443
index.crates.io:443
static.crates.io:443
gitlab.com:443
index.docker.io:443
static.rust-lang.org:443
index.crates.io:443
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
- name: Log in to Docker Hub
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@818d4b7b91585d195f67373fd9cb0332e31a7175
with:
images: mtrnord/erooster
- name: Build and push
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Update repo description
uses: peter-evans/dockerhub-description@dc67fad7001ef9e8e3c124cb7a64e16d0a63d864
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: mtrnord/erooster