Skip to content

Commit

Permalink
Use github action
Browse files Browse the repository at this point in the history
  • Loading branch information
RashadAnsari committed Jul 13, 2023
1 parent ec76c51 commit 3834afb
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 40 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build

on:
push:
tags:
- '*'

jobs:
build:
name: Build
runs-on: ubuntu-20.04
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata
id: meta
uses: docker/metadata-action@v4
with:
images: rashadansari/tile38
tags: type=semver,pattern={{version}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: TILE38_VERSION=${{ github.ref_name }}
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM bitnami/minideb-extras:stretch
LABEL maintainer="Rashad Ansari <rashad.ansari1996@gmail.com>"

ARG TILE38_VERSION=1.17.6
ARG TILE38_VERSION

RUN curl -L https://github.com/tidwall/tile38/releases/download/${TILE38_VERSION}/tile38-${TILE38_VERSION}-linux-amd64.tar.gz -o tile38-${TILE38_VERSION}-linux-amd64.tar.gz && \
tar xzvf tile38-${TILE38_VERSION}-linux-amd64.tar.gz && \
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Tile38 HA Docker Image

[![Build Status][1]][2]
![GitHub](https://img.shields.io/github/license/rashadansari/tile38-ha)

This is a docker image for making Tile38 HA with Redis Sentinel.

## Docker Tags
Expand All @@ -22,6 +19,3 @@ docker pull rashadansari/tile38:tagname
### Notes

This image is a non-root container image that adds an extra layer of security and is generally recommended for production environments. However, because they run as a non-root user, privileged tasks are typically off-limits.

[1]: https://travis-ci.org/rashadansari/tile38-ha.svg?branch=master
[2]: https://travis-ci.org/rashadansari/tile38-ha
8 changes: 0 additions & 8 deletions deploy.sh

This file was deleted.

15 changes: 0 additions & 15 deletions test.sh

This file was deleted.

0 comments on commit 3834afb

Please sign in to comment.