Skip to content

run on master branch too #1

run on master branch too

run on master branch too #1

name: build-test
on:
push:
branches: [ "main", "master" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
include:
- environment: 'build-test'
dockerfile: '3.20/Dockerfile'
containertag: 'bcit.io/library/alpine:3.20'
steps:
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
registry: bcit.io
username: ${{ secrets.BCITIO_LIBRARY_USERNAME }}
password: ${{ secrets.BCITIO_LIBRARY_TOKEN }}
- name: Build and push Docker images
uses: docker/[email protected]
with:
file: ${{ matrix.dockerfile }}
tags: ${{ matrix.containertag }}
push: true