Skip to content

Commit

Permalink
Add worfklow to build and push latest version of powa-archivist
Browse files Browse the repository at this point in the history
This follows the same principle as for the powa-archivist-git in 02f78fe.
  • Loading branch information
rjuju committed Jun 16, 2024
1 parent 7730d02 commit bbfbbf1
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/powa-archivist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Publish powa-archivist container images

on:
push:
branches: [master, auto_git]
repository_dispatch:
types: [powa-archivist]

env:
ORG: "powateam"
IMAGE_NAME: "powa-archivist-git"
REGISTRY: "index.docker.io"

jobs:
build_and_push:
name: Build powa-archivist-git container images and push to Docker hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: Log in to Docker Hub
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build all images
run: |
# We rely on the makefile and underlying scripts to build the images,
# as they have all the knowledge about the supported pg major
# versions and automatic detection of the latest releases of each
# component.
# Note that it primarily rely on podman, so alias it to docker.
alias podman=docker
CONTAINER_PUSH=1 make powa-archivist

0 comments on commit bbfbbf1

Please sign in to comment.