appliaction convert to container #5
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: Mikrotik Integration | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Deploy: | |
name: Mikrotik Integration Deploy Process | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout Action | |
uses: actions/checkout@v3 | |
- id: vars | |
name: Get brandh tag | |
shell: bash | |
run: | | |
echo "::set-output name=tag::${GITHUB_REF#refs/heads/}-$(git rev-parse --short HEAD)" | |
- id: 'auth' | |
name: Login to GitHub Container Registry | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.GIT_USERNAME }} | |
password: ${{ secrets.GIT_PASSWORD }} | |
- id: 'build_and_push' | |
name: Build and push image to Docker Hub | |
run: | | |
docker build . -t arnobdev/mikrotik-api:${{ steps.vars.outputs.tag }} | |
docker push arnobdev/mikrotik-api:${{ steps.vars.outputs.tag }} |