Skip to content

Revert "user build"

Revert "user build" #5

Workflow file for this run

name: Build Ubuntu-22.04 Package
on:
push:
paths:
- 'Dockerfile-ubuntu'
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to GitHub Packages
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker build -t docker.pkg.github.com/${{ github.repository }}/ubuntu:22.04 -f Dockerfile-ubuntu .
- name: Push Docker Image
run: |
docker push docker.pkg.github.com/${{ github.repository }}/ubuntu:22.04