Skip to content

Commit

Permalink
Merge pull request #2 from rophy/rophy/test
Browse files Browse the repository at this point in the history
Rophy/test
  • Loading branch information
rophy authored Feb 2, 2024
2 parents 08a98d4 + 368c78f commit 7c3e4ff
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/elasticsearch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: rophy/elasticsearch
on:
push:
paths:
- elasticsearch/**
jobs:
test:
if: github.ref != 'refs/heads/main' || github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./elasticsearch
dockerfile: ./elasticsearch/Dockerfile
push: false
build-and-push:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set variables
run: |
VER=$(cat elasticsearch/version.txt)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./elasticsearch
dockerfile: ./elasticsearch/Dockerfile
push: false
tags: rophy/elasticsearch:${{ env.VERSION }}
2 changes: 1 addition & 1 deletion elasticsearch/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.16.1-20240202-r1
7.16.1-20240202-r2

0 comments on commit 7c3e4ff

Please sign in to comment.