Skip to content

docker

docker #196

Workflow file for this run

name: docker
on:
push:
branches:
- master
schedule:
- cron: "32 1 * * 6"
jobs:
docker-ci:
runs-on: ubuntu-latest
name: ${{ matrix.tag }}
strategy:
fail-fast: false
matrix:
tag: [ci, ci-dev]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: docker/${{ matrix.tag }}
tags: rcpp/${{ matrix.tag }}
docker-run:
runs-on: ubuntu-latest
name: run
needs: docker-ci
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: docker/run
tags: rcpp/run
docker-plus:
runs-on: ubuntu-latest
name: plus
needs: docker-run
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
context: docker/plus
tags: rcpp/plus