Skip to content

Update atlassian/confluence Docker tag to v9 #99

Update atlassian/confluence Docker tag to v9

Update atlassian/confluence Docker tag to v9 #99

Workflow file for this run

name: Build confluence
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/confluence.yml"
- "services/confluence/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build container
id: docker_build
uses: docker/build-push-action@v6
with:
context: services/confluence
push: ${{ github.ref == 'refs/heads/main' }}
tags: blindern/confluence:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Deploy
if: github.ref == 'refs/heads/main'
run: |
curl --fail -L -i -H "authorization: bearer $DEPLOYER_TOKEN" -H "content-type: application/json" -X POST https://deployer.foreningenbs.no/deploy -d '
{
"service": "confluence",
"attributes": {
"image": "blindern/confluence@${{ steps.docker_build.outputs.digest }}"
}
}'
env:
DEPLOYER_TOKEN: ${{ secrets.DEPLOYER_TOKEN }}