name: Aktualizr CI docker images update
on:
  push:
    branches: [ master ]
jobs:
  update-bionic:
    name: Update Ubuntu Bionic Image
    runs-on: ubuntu-latest
    env:
      DOCKER_TAG: docker.pkg.github.com/advancedtelematic/aktualizr/aktualizr-ci:bionic-master
      DOCKERFILE: docker/Dockerfile.ubuntu.bionic
    steps:
      - uses: actions/checkout@master
      - name: Docker login
        run: echo ${{ github.token }} | docker login docker.pkg.github.com -u advancedtelematic --password-stdin
      - name: Docker build and push
        run: |
          docker pull "$DOCKER_TAG" || true
          docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
          docker push "$DOCKER_TAG"

  update-ubuntu-focal:
    name: Update Ubuntu Focal Image
    runs-on: ubuntu-latest
    env:
      DOCKER_TAG: docker.pkg.github.com/advancedtelematic/aktualizr/aktualizr-ci:ubuntu-focal-master
      DOCKERFILE: docker/Dockerfile.ubuntu-focal
    steps:
      - uses: actions/checkout@master
      - name: Docker login
        run: echo ${{ github.token }} | docker login docker.pkg.github.com -u advancedtelematic --password-stdin
      - name: Docker build and push
        run: |
          docker pull "$DOCKER_TAG" || true
          docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
          docker push "$DOCKER_TAG"

name: Aktualizr CI docker images update
on:
  push:
    branches: [ master ]
jobs:
  update-bionic:
    name: Update Ubuntu Bionic Image
    runs-on: ubuntu-latest
    env:
      DOCKER_TAG: docker.pkg.github.com/advancedtelematic/aktualizr/aktualizr-ci:bionic-master
      DOCKERFILE: docker/Dockerfile.ubuntu.bionic
    steps:
      - uses: actions/checkout@master
      - name: Docker login
        run: echo ${{ github.token }} | docker login docker.pkg.github.com -u advancedtelematic --password-stdin
      - name: Docker build and push
        run: |
          docker pull "$DOCKER_TAG" || true
          docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
          docker push "$DOCKER_TAG"

  update-ubuntu-focal:
    name: Update Ubuntu Focal Image
    runs-on: ubuntu-latest
    env:
      DOCKER_TAG: docker.pkg.github.com/advancedtelematic/aktualizr/aktualizr-ci:ubuntu-focal-master
      DOCKERFILE: docker/Dockerfile.ubuntu.focal
    steps:
      - uses: actions/checkout@master
      - name: Docker login
        run: echo ${{ github.token }} | docker login docker.pkg.github.com -u advancedtelematic --password-stdin
      - name: Docker build and push
        run: |
          docker pull "$DOCKER_TAG" || true
          docker build --cache-from "$DOCKER_TAG" --pull -t "$DOCKER_TAG" -f "$DOCKERFILE" .
          docker push "$DOCKER_TAG"

Fix a typo in naming the Ubuntu Focal dockerfile.
Fix a typo in naming the Ubuntu Focal dockerfile.

Signed-off-by: Patrick Vacek <a38520cbbe2e974bc8b7ea86877dd3c7115ca2d7@gmail.com>
