run on master branch too #1
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: 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 |