Sha256: b6c340fa35156e061209b05169a0ebab8f02bff24cbce65c663280e6998963a9

Contents?: true

Size: 1.81 KB

Versions: 3

Compression:

Stored size: 1.81 KB

Contents

name: Docker test and publish

on:
  push:
    branches:
      - main

jobs:
  build-and-publish:
    env:
      PUPPERWARE_ANALYTICS_STREAM: production
      IS_LATEST: true
      # Still need these env vars for README publishing
      DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
      DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: azure/docker-login@v1
        with: # This doesn't seem to work unless we point directly to the secrets
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}
      - name: Set up Ruby 2.6
        uses: actions/setup-ruby@v1
        with:
          ruby-version: 2.6.x
      - run: gem install bundler
      - uses: actions/checkout@v3
      - name: Set up QEMU
        uses: docker/setup-qemu-action@v3
      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v2
      - name: Build container
        working-directory: docker
        run: |
          docker system prune --all --force --volumes
          docker builder prune --force --keep-storage=10GB
          make lint build test
      - name: Publish container
        working-directory: docker
        run: |
          make publish
      - name: Build release container
        env:
          IS_RELEASE: true
        working-directory: docker
        run: |
          if make prep; then
            make lint build test
          else
            echo "Skipping release container building and testing"
          fi
      - name: Publish release container
        env:
          IS_RELEASE: true
        working-directory: docker
        run: |
          if make prep; then
            make publish
          else
            echo "Skipping release container publishing"
          fi

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
r10k-4.1.0 .github/workflows/docker.yml
r10k-4.0.2 .github/workflows/docker.yml
r10k-4.0.1 .github/workflows/docker.yml