Skip to content

Instantly share code, notes, and snippets.

View Lamarcke's full-sized avatar
💭
"With experience comes perspective"

Cássio Lamarck Lamarcke

💭
"With experience comes perspective"
View GitHub Profile
@Lamarcke
Lamarcke / docker-build.yml
Created July 12, 2023 23:21
Create Docker Image on Push
name: Docker Build
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: read
packages: write
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE