Skip to content

Commit

Permalink
Added github action script got docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyun committed Feb 17, 2022
1 parent 940035e commit 3614a60
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .docker/os2web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ RUN set -eux; \
docker-php-ext-install soap; \
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; \
# Addind mysql-client
wget https://repo.mysql.com//mysql-apt-config_0.8.13-1_all.deb; \
echo 4 | dpkg -i mysql-apt-config_0.8.13-1_all.deb; \
wget https://repo.mysql.com/mysql-apt-config_0.8.20-1_all.deb; \
echo 4 | dpkg -i mysql-apt-config_0.8.20-1_all.deb; \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29; \
apt update; \
apt install -qq -y mysql-client; \
echo "[client]" >> /etc/mysql/my.cnf; echo "ssl-mode=DISABLED" >> /etc/mysql/my.cnf; \
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Get the tag name
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})

- name: Build the tagged Docker image
run: pwd && ls -la && cd .docker/os2web && chmod +x build.sh && ./build.sh ${{steps.vars.outputs.tag}}

- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin

- name: Push the tagged Docker image
run: docker push dkbellcom/os2web8:${{steps.vars.outputs.tag}}

0 comments on commit 3614a60

Please sign in to comment.