2021-04-26 09:34:06 +00:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-05-16 15:08:47 +00:00
|
|
|
branches: [ main ]
|
2021-05-21 09:01:29 +00:00
|
|
|
tags:
|
|
|
|
- '*'
|
2021-04-26 09:34:06 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set version
|
|
|
|
id: version
|
|
|
|
run: echo ::set-output name=release_version::${GITHUB_REF#refs/*/}
|
|
|
|
|
|
|
|
- name: Build Docker image
|
|
|
|
run: |
|
|
|
|
echo Building version ${{ steps.version.outputs.release_version }}...
|
2022-06-05 10:26:42 +00:00
|
|
|
docker build . --file Dockerfile --tag xbeeant/oo-unlimit:${{ steps.version.outputs.release_version }}
|
2021-05-16 15:08:47 +00:00
|
|
|
|
|
|
|
- name: Push Docker image
|
|
|
|
run: |
|
2022-06-05 10:26:42 +00:00
|
|
|
echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKER_TOKEN }}
|
|
|
|
docker push xbeeant/oo-unlimit:${{ steps.version.outputs.release_version }}
|