Skip to content

docs: update usage instructions #17

docs: update usage instructions

docs: update usage instructions #17

name: Publish Docker image
on:
push:
branches: main
tags: "v*"
# Allows running this workflow from GitHub Actions tab
workflow_dispatch:
jobs:
push_to_registry:
name: Push Docker image to Docker Hub and GitHub Packages
runs-on: ubuntu-latest
environment:
name: dockerhub
url: https://hub.docker.com/repositories/cybardev
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker [app img]
id: meta
uses: docker/metadata-action@v5
with:
images: |
cybardev/resumake
ghcr.io/cybardev/resumake
- name: Build and push Docker application image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}