diff --git a/.github/workflows/docker-image-master.yaml b/.github/workflows/docker-image-master.yaml deleted file mode 100644 index b79b313..0000000 --- a/.github/workflows/docker-image-master.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Docker image build master branch -on: - push: - branches: - - master - -jobs: - build: - name: Push Docker image to GitHub package container registry - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - uses: docker/build-push-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: greenstatic/bigbluebutton-exporter - tags: "latest" diff --git a/.github/workflows/docker-image-tag.yaml b/.github/workflows/docker-image-tag.yaml deleted file mode 100644 index d003461..0000000 --- a/.github/workflows/docker-image-tag.yaml +++ /dev/null @@ -1,17 +0,0 @@ -name: Docker image build on tag -on: push - -jobs: - build: - name: Push Docker image to GitHub package container registry - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v2 - - uses: docker/build-push-action@v1 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - repository: greenstatic/bigbluebutton-exporter - tag_with_ref: true - push: ${{ startsWith(github.ref, 'refs/tags/') }} diff --git a/.github/workflows/docs-master.yaml b/.github/workflows/docs-master.yaml deleted file mode 100644 index cd187b6..0000000 --- a/.github/workflows/docs-master.yaml +++ /dev/null @@ -1,25 +0,0 @@ -name: Build Docs and Deploy -on: - push: - branches: - - master -jobs: - build-and-deploy: - runs-on: ubuntu-latest - steps: - - name: Checkout 🛎️ - uses: actions/checkout@v2 - - - name: Install and Build 🔧 - run: | - sudo apt-get install python3-setuptools - pip3 install mkdocs mkdocs-material - export PATH=~/.local/bin:$PATH - make docs - - - name: Deploy 🚀 - uses: JamesIves/github-pages-deploy-action@releases/v3 - with: - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: html diff --git a/.github/workflows/publish-docker-image.yaml b/.github/workflows/publish-docker-image.yaml new file mode 100644 index 0000000..60a963c --- /dev/null +++ b/.github/workflows/publish-docker-image.yaml @@ -0,0 +1,37 @@ +name: Publish Docker image + +on: + release: + types: [published] + +jobs: + push_to_registries: + name: Push Docker image to multiple registries + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ghcr.io/${{ github.repository }} + + - name: Build and push Docker images + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}