Skip to content

Commit

Permalink
Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kwatson committed Dec 3, 2022
1 parent c0ae5db commit 1595cd5
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 6 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/2-4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "v2.4"

on:
schedule:
- cron: '0 4 * * 3'
workflow_dispatch:

env:
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.
GH_REPO: computestacks/cs-docker-xtrabackup

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2

- name: Log into Github Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: build-and-push
uses: docker/build-push-action@v3
with:
context: 2.4/
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ env.GH_REPO }}:2.4
cache-from: type=gha
cache-to: type=gha,mode=max
45 changes: 45 additions & 0 deletions .github/workflows/8-0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "v8.0"

on:
schedule:
- cron: '0 5 * * 3'
workflow_dispatch:

env:
# The default repo env will be 'ComputeStacks'; uppercase is not allowed.
GH_REPO: computestacks/cs-docker-xtrabackup

jobs:
build:

runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2

- name: Log into Github Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: build-and-push
uses: docker/build-push-action@v3
with:
context: 8.0/
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ env.GH_REPO }}:8.0
ghcr.io/${{ env.GH_REPO }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
7 changes: 6 additions & 1 deletion 2.4/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM ghcr.io/computestacks/cs-docker-base:ubuntu-focal

LABEL maintainer="ComputeStacks <[email protected]>"
LABEL org.opencontainers.image.authors="https://computestacks.com"
LABEL org.opencontainers.image.source="https://github.com/ComputeStacks/cs-docker-xtrabackup/tree/main/2.4"
LABEL org.opencontainers.image.url="https://github.com/ComputeStacks/cs-docker-xtrabackup/tree/main/2.4"
LABEL org.opencontainers.image.title="Percona xtrabackup 2.4"

RUN wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb \
&& dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb
&& dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb \
&& percona-release enable-only tools

RUN set -ex; \
\
Expand Down
9 changes: 4 additions & 5 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
FROM ghcr.io/computestacks/cs-docker-base:ubuntu-focal

LABEL maintainer="ComputeStacks <[email protected]>"
LABEL org.opencontainers.image.authors="https://computestacks.com"
LABEL org.opencontainers.image.source="https://github.com/ComputeStacks/cs-docker-xtrabackup/tree/main/8.0"
LABEL org.opencontainers.image.url="https://github.com/ComputeStacks/cs-docker-xtrabackup/tree/main/8.0"
LABEL org.opencontainers.image.title="Percona xtrabackup 8.0"

RUN wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb \
&& dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb \
&& percona-release enable-only tools

RUN export DEBIAN_FRONTEND=noninteractive \
&& wget -O mysqlconfig.deb https://dev.mysql.com/get/mysql-apt-config_0.8.20-1_all.deb \
&& echo mysql-apt-config mysql-apt-config/select-server select mysql-8.0 | debconf-set-selections \
&& dpkg -i mysqlconfig.deb

RUN set -ex; \
\
apt-get update; \
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Percona xtrabackup

Container images used by ComputeStacks' backup agent for MySQL.

0 comments on commit 1595cd5

Please sign in to comment.