-
-
Notifications
You must be signed in to change notification settings - Fork 262
Expand file tree
/
Copy pathdocker2github.sh
More file actions
executable file
·27 lines (23 loc) · 958 Bytes
/
Copy pathdocker2github.sh
File metadata and controls
executable file
·27 lines (23 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#
# This is the shell script for building a docker image and pushes it
# to the Github registry
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
#
# @package phpMyFAQ
# @author Thorsten Rinne <thorsten@phpmyfaq.de>
# @copyright 2019-2026 phpMyFAQ Team
# @license https://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
# @link https://www.phpmyfaq.de
# @since 2019-11-09
# phpMyFAQ Version
: "${PMF_VERSION:=$(php scripts/get-version.php)}"
# Build docker image
docker build -t phpmyfaq/phpmyfaq:${PMF_VERSION} .
# Tag the Docker image
docker tag phpmyfaq/phpmyfaq:${PMF_VERSION} docker.pkg.github.com/thorsten/phpmyfaq/phpmyfaq:${PMF_VERSION}
# Push the Docker image to Github Registry
docker push docker.pkg.github.com/thorsten/phpmyfaq/phpmyfaq:${PMF_VERSION}