Skip to content

Commit 3614a60

Browse files
committed
Added github action script got docker image
1 parent 940035e commit 3614a60

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

.docker/os2web/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ RUN set -eux; \
1414
docker-php-ext-install soap; \
1515
curl -fsSL "https://github.com/drush-ops/drush-launcher/releases/latest/download/drush.phar" -o /usr/local/bin/drush && chmod +x /usr/local/bin/drush; \
1616
# Addind mysql-client
17-
wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb; \
18-
echo 4 | dpkg -i mysql-apt-config_0.8.13-1_all.deb; \
17+
wget https://repo.mysql.com/mysql-apt-config_0.8.20-1_all.deb; \
18+
echo 4 | dpkg -i mysql-apt-config_0.8.20-1_all.deb; \
19+
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29; \
1920
apt update; \
2021
apt install -qq -y mysql-client; \
2122
echo "[client]" >> /etc/mysql/my.cnf; echo "ssl-mode=DISABLED" >> /etc/mysql/my.cnf; \

.github/workflows/dockerimage.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Docker Image CI
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v1
12+
13+
- name: Get the tag name
14+
id: vars
15+
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
16+
17+
- name: Build the tagged Docker image
18+
run: pwd && ls -la && cd .docker/os2web && chmod +x build.sh && ./build.sh ${{steps.vars.outputs.tag}}
19+
20+
- name: Login to DockerHub Registry
21+
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
22+
23+
- name: Push the tagged Docker image
24+
run: docker push dkbellcom/os2web8:${{steps.vars.outputs.tag}}

0 commit comments

Comments
 (0)