Test docker image before pushing to docker hub ()

* update dockerize docker instructions

* use go with alpine

* login to docker hub using action too

* test docker image before building

* extract command from the entrypoint

* change volume path

* user docker compose run and cmd instead entrypoint
This commit is contained in:
Fco. Javier Delgado del Hoyo 2023-09-17 11:01:33 +02:00 committed by GitHub
parent 4be928f6d0
commit e52061d4fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions
.github/workflows

View file

@ -16,6 +16,16 @@ jobs:
uses: actions/checkout@v4
- name: Test Bash scripts
run: sudo apt-get -qq update && sudo apt-get install -y devscripts shellcheck && make test
- name: Test image
env:
VOLUME_PATH: /tmp/mariadb
DATABASE_NAME: foo
MARIADB_ROOT_PASSWORD: abcd
run: |
docker-compose up -d mariadb
docker-compose run backup /backup.sh
docker-compose run backup /restore.sh /backup/latest.foo.sql.gz
docker-compose stop
build:
runs-on: ubuntu-22.04
needs: test