Merge pull request #124 from uptane/tidy/crypto #215
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/uptane/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 uptane --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/uptane/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 uptane --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" |